GRANT SElECT ON *.* TO 'username'@'%' IDENTIFIED BY "password";
flush privileges;
给 全部权限
GRANT all privileges ON *.* TO 'username'@'localhost' IDENTIFIED BY "password";
flush privileges;
GRANT SElECT ON *.* TO 'username'@'%' IDENTIFIED BY "password";
flush privileges;
给 全部权限
GRANT all privileges ON *.* TO 'username'@'localhost' IDENTIFIED BY "password";
flush privileges;
转载于:https://my.oschina.net/u/3350266/blog/3028186