输入yum list MysqL-server进行查看
输入yum install MysqL-server进行安装
过程中选择Y继续安装,最后安装成功
再输入update user set password=password('密码') where user='root';回车
最后flush privileges;回车
设置MysqL远程访问,grant all privileges on *.* to 'root'@'%' identified by '123456' with grant option;
service MysqLd restart重启服务
发生10038错误时,执行 vi /etc/sysconfig/iptables
将-A RH-Firewall-1-INPUT -m state --state NEW -m tcp -p tcp --dport 3306 -j ACCEPT加在commit上面一句的上面,就是倒数第三行(空行不算)
service iptables restart重启防火墙,service MysqLd start启动服务
参考资料:
指令总结:
ifconfig查看IP