497
个编辑
更改
→mysql数据库用户远程授权
# 查看firewall服务状态是否开放3306;
# 查看远程用户权限,如root:<pre>select host,user, select_priv,insert_priv,drop_priv from mysql.user;</pre>
# 开放远程用户权限,如root:<pre>grant all privileges on *.* to 'root'@'%' indentified by 'password';</pre>说明:这里的password是区别与之前的root用户的;
# flush privileges;
# systemctl restart mysqld
# eof