mysql 添加用户并授权

mysql> create database dogDB;

mysql> CREATE USER 'dog'@'%' IDENTIFIED BY '123456';

mysql> grant all on dogDB.* to 'dog'@'%' identified by '123456';

原文地址:https://www.cnblogs.com/turingbrain/p/5469307.html