要使用Navicat进行远程调试数据,发现连接失败,于是乎想到MYSQL默认禁止远程访问。

操作方法

1、登录数据库

[root@ ~]# mysql -u root -p
Enter password: