连接上去执行以下命令:
use mysql;
GRANT ALL ON *.* to [email protected]'0.0.0.0' IDENTIFIED BY 'yourPassword';
GRANT ALL ON *.* to [email protected]'%' IDENTIFIED BY 'root';
FLUSH PRIVILEGES;
grant all privileges on *.* to 'root'@'%' identified by 'yourRootPassword' with grant option;
flush privileges;