作者:手机用户2502879933 | 来源:互联网 | 2018-06-10 15:14
mysql开启远程访问mysql-uroot-p输入密码,执行下面这条语句grantallprivilegeson*.*to‘user‘@’%‘identifiedby‘password‘withgrantoption;其中,user是用户名,mysql默认的是root,password是密码自己设置。%表示任意主机。这样
mysql 开启远程 访问 mysql -uroot -p 输入密码,执行下面这条语句 grant all privileges on *.* to ‘user‘@’%‘ identified by ‘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是密码自己设置 。%表示任意主机。这样就允许远程任意一台主机访问了。