Mysql开启本地远程链接

 grant all privileges on *.* to 'root'@'%' identified by 'root' with grant option;

 解释: grant [权限] on [database.table] to [用户名]@[IP] identified by [密码];

flush privileges; //刷新权限

select host,user from user;

 

posted @ 2024-03-23 10:32  FinnYY  阅读(5)  评论(0编辑  收藏  举报