mysql聪少Harry笔记Centos7

CentOS设置MySQL

2016-02-27  本文已影响90人  onweer

设置Mysql的服务

3.png

然后
\q 或者 exit; 退出

命令
/sbin/iptables -I INPUT -p tcp --dport 3306 -j ACCEPT
/etc/rc.d/init.d/iptables save

1.png

修改密码并设置远程访问

use mysql;

update user set password=password('密码') where user='root';

flush privileges;


给个github follow me的链接,上面有很多初学者可供学习的资料,项目.

<a>https://github.com/SuperZee</a>

上一篇 下一篇

猜你喜欢

热点阅读