1、 vim /etc/mysql/my.cnf
修改监听端口
bind-address = 192.168.125.128
2、给其他用户授权, root 192.168.125.130
GRANT ALL PRIVILEGES ON . TO root@'192.168.125.130' identified by 'Newer@123';
flush all privileges;
1、 vim /etc/mysql/my.cnf
修改监听端口
bind-address = 192.168.125.128
2、给其他用户授权, root 192.168.125.130
GRANT ALL PRIVILEGES ON . TO root@'192.168.125.130' identified by 'Newer@123';
flush all privileges;