码迷,mamicode.com
首页 > 数据库 > 详细

centeros7远程访问mysql5.7

时间:2017-07-28 14:15:38      阅读:233      评论:0      收藏:0      [点我收藏+]

标签:restart   pre   lld   firewalld   color   tar   date   root账户   mysqld   

先启动firewall防火墙:

service firewalld start

打开3306端口:

firewall-cmd --add-port=3306/tcp --permanent

mysql授权root账户远程访问:

update mysql.user set Host=% where HOST=localhost and User=root;
flush privileges;

重启mysql服务器:

service mysqld restart

搞定收工!!!!

抱怨一句,今天上海好热啊

centeros7远程访问mysql5.7

标签:restart   pre   lld   firewalld   color   tar   date   root账户   mysqld   

原文地址:http://www.cnblogs.com/wenhainan/p/7249741.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!