重置密码解决MySQL for Linux错误 ERROR 1045 (28000): Access denied for user 'root'@'localhost' (using passwor
如果开启了防火墙:1.首先查看防火墙状态:firewall-cmd--state显示notruning,所以先开启防火墙:systemctlstartfirewalld2.查看防火墙开放的端口:firewall-cmd--zone=public--list-ports显示为空3.添加mysql端口,登录mysql后通过showvariableslike'port';查看端口一般为3306通过fir