时间:2021-07-01 10:21:17 帮助过:2人阅读
MariaDB [mysql]> select host,user,password from user; +-----------+------+-------------------------------------------+ | host | user | password | +-----------+------+-------------------------------------------+ | localhost | root | *27732D6FB9C956E7D13CE8A983210AA5B1FF6C3C | | 127.0.0.1 | root | *27732D6FB9C956E7D13CE8A983210AA5B1FF6C3C | | ::1 | root | *27732D6FB9C956E7D13CE8A983210AA5B1FF6C3C | | % | root | *81F5E21E35407D884A6CD4A731AEBFB6AF209E1B | +-----------+------+-------------------------------------------+ 4 rows in set (0.00 sec)
密码重新设置
% | root | *81F5E21E35407D884A6CD4A731AEBFB6AF209E1B
SET PASSWORD FOR ‘root‘@‘%‘ = PASSWORD(‘xxxxx‘);
OK。。。
Can‘t connect to MySQL server on ‘192.168.1.101‘ (61)
连接mysql 时出现(61)错误 ,官方解释是:
OS error code 61: No data available
经排插觉得可能是防火墙的问题,因centos7 防火墙默认是 firewall 不是iptables,调了好久开启3306端口的授权未果。最终一怒之下关掉了防火墙,此问题也得已解决。
Mysql 错误 access denied for user ‘root‘ using pa
标签: