1.通过SecureCRT连接ip
2.通过su root命令切换到root权限用户
3.输入 service mysqld start 开启mysql
4.登录mysql
mysql -u root -p 敲回车,输入密码
5.授予远程连接权限
grant all privileges on *.* to 'root' @'%' identified by '密码'
6.退出数据库模式。关闭防火墙
systemctl stop firewalld.service
1.通过SecureCRT连接ip
2.通过su root命令切换到root权限用户
3.输入 service mysqld start 开启mysql
4.登录mysql
mysql -u root -p 敲回车,输入密码
5.授予远程连接权限
grant all privileges on *.* to 'root' @'%' identified by '密码'
6.退出数据库模式。关闭防火墙
systemctl stop firewalld.service