‘password‘ with grant option; 其中,user是用户名,mysql默认的是root ,password是密码自己设置 。%表示任意主机。这样
mysql 开启远程 访问mysql -uroot -p
输入密码,执行下面这条语句
grant all privileges on *.* to ‘user‘@’%‘ identified by ‘password‘ with grant option;
其中,user是用户名,mysql默认的是root ,password是密码自己设置 。%表示任意主机。这样就允许远程任意一台主机访问了。
【说明】:本文章由站长整理发布,文章内容不代表本站观点,如文中有侵权行为,请与本站客服联系(QQ:254677821)!