将本地的mysql数据库设置为允许远程访问

将本地的mysql数据库设置为允许远程访问

>use mysql;

mysql>grant all privileges on *.* to 'root'@'%' with grant option;

mysql>update user set password=password('密码') where user='root';

mysql>flush privileges;

mysql>exit

猜你喜欢

转载自blog.csdn.net/sweet_yaya457/article/details/85028707