mysql -u root -p;
use mysql;
update user set host = '%' where user = 'root';
select host, user from user;
FLUSH PRIVILEGES;//刷新数据
Linux mysql 设置远程访问
最新推荐文章于 2024-03-14 20:39:53 发布
mysql -u root -p;
use mysql;
update user set host = '%' where user = 'root';
select host, user from user;
FLUSH PRIVILEGES;//刷新数据