1200字范文,内容丰富有趣,写作的好帮手!
1200字范文 > linux-mysql 允许远程连接

linux-mysql 允许远程连接

时间:2023-05-21 19:24:48

相关推荐

linux-mysql 允许远程连接

因为高温,已经两个月左右的时间没敢打开笔记本了。前天开机登录linux,用navicat连接mysql,报错了。一着急,就把ubantu恢复到初装数据库的快照了。然后,从头开始,设置mysql的允许远程连接。

use mysql;

select host, user, authentication_string, plugin from user;

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

select host, user, authentication_string, plugin from user;

flush privileges;

quit;

sudo service mysql restart;

打开navicat,建立连接,搞定。

本内容不代表本网观点和政治立场,如有侵犯你的权益请联系我们处理。
网友评论
网友评论仅供其表达个人看法,并不表明网站立场。