美文网首页
mysql允许远程连接

mysql允许远程连接

作者: 明明就_c565 | 来源:发表于2019-12-06 10:54 被阅读0次

# 修改密码

mysqladmin -u root password "123456"

mysql -u root -p

# 改表实现远程连接

use mysql;

update user set host = '192.168.6.66' where user = 'root';

select host,user,password from user;

# 授权实现远程连接

use mysql;

grant all privileges on *.* to root@'%' identified by "password";

# 参考

https://www.jb51.net/article/159865.htm

相关文章

网友评论

      本文标题:mysql允许远程连接

      本文链接:https://www.haomeiwen.com/subject/efisgctx.html