设置MySQL远程访问权限
方法一:该表法(将user表中的host项的"localhost"修改成"%")mysql -uroot -p(进入mysql)use mysql;update user set host = '%' where user = 'root';select host,user from user;方法二:授权法启动MySQL并登录授权任何主机访问数据库权限grant all privrileges on *.* to 'root'@'%'with grant option.
原创
2021-09-13 18:20:33 ·
169 阅读 ·
0 评论