Navicat 连接 MySQL 错误 2003 - Can’t connect to MySQL server on x.x.x.x (61 “Connection refused”)
linux 安装好 mysql 后服务器可以登陆,但客户端连接报错
防火墙没有关闭
方法一:关闭防火墙
systemctl stop firewalld
systemctl disable firewalld
方法二:将 mysql 加入防火墙
firewall-cmd --zone=public --permanent --add-service=mysql
重启防火墙
systemctl restart firewalld
ERROR 1290 (HY000): The MySQL server is running with the --skip-grant-tables option so it cannot execute this statement
跳过注册表进行修改密码时,执行语句报错,直接刷新就可以重新执行了。
mysql> flush privileges;
Query OK, 0 rows affected (0.00 sec)
mysql> update user set authentication_string='你的密码' where user='root';
Query OK, 0 rows affected (0.00 sec)