MySql 允许远程用户登录访问

1
2
# mysql -u root -proot 
mysql>GRANT ALL PRIVILEGES ON *.* TO 'root'@'%' IDENTIFIED BY 'youpassword' WITH GRANT OPTION;

之后刷新权限即可。

1
FLUSH PRIVILEGES 

服务器记得打开3306端口。

Built with Hugo
主题 StackJimmy 设计