进入mysql
mysql -u root -p123456
进入mysql后分别执行以下命令:
MySQL>use mysql;
MySQL>GRANT ALL PRIVILEGES ON *.* TO 'root'@'%' IDENTIFIED BY '123456' WITH GRANT OPTION ;
MySQL>FLUSH PRIVILEGES;
mysql -u root -p123456
MySQL>use mysql;
MySQL>GRANT ALL PRIVILEGES ON *.* TO 'root'@'%' IDENTIFIED BY '123456' WITH GRANT OPTION ;
MySQL>FLUSH PRIVILEGES;
上一篇:mysql_connect(): The mysql extension is deprecated and will be removed in the fu
下一篇:重启mysql提示MySQL server PID file could not be found!