1.查看linux系统版本
cat /proc/version
3.启动MysqL
sudo /etc/init.d/MysqL start
4.查看MysqL状态
service MysqL status
5.查找my.cnf路径
sudo find / -name my.cnf
结果:/etc/MysqL/my.cnf
设置远程连接权限
GRANT ALL PRIVILEGES ON . TO ‘root’@’%’ IDENTIFIED BY ‘pwd4aliyun’ WITH GRANT OPTION;
FLUSH PRIVILEGES;
exit;
编辑/etc/MysqL/my.cnf sudo vi /etc/MysqL/my.cnf 注释bind-address = localhost :wq! 强制保存文件,并退出vi 重启服务sudo /etc/init.d/MysqL restart