1、mysql -u root -p (root)用户名
2、mysql>GRANT ALL PRIVILEGES ON *.* TO 'root'@'%' IDENTIFIED BY 'root' WITH GRANT OPTION;
3、mysql>flush privileges;
1、mysql -u root -p (root)用户名
2、mysql>GRANT ALL PRIVILEGES ON *.* TO 'root'@'%' IDENTIFIED BY 'root' WITH GRANT OPTION;
3、mysql>flush privileges;
转载于:https://www.cnblogs.com/chenligeng/p/9627857.html