Workbench设置允许远程访问mysql数据库

打开Workbench中的sql窗口,输入:

GRANT ALL PRIVILEGES ON *.* TO 用户名@'%' IDENTIFIED BY 'xxxxxx( 原密码)' WITH GRANT OPTION;

FLUSH PRIVILEGES;

如果报错:

%报错:You must reset your password using ALTER USER statement before executing this statement.

%解决办法:将用户名重新改成其他名。

 

你可能感兴趣的:(报错)