MySQL连接日志

1、pymysql.err.InternalError: (1130, u”Host ‘218.20.44.100’ is not allowed to connect to this MySql server

MySQL拒绝远程访问

use mysql;
update user set host='%' where user='root';
flush privileges;
select host,user from user;

2、your password does not satisfy the current policy requirements

Policy Tests Performed
0 or LOW Length
1 or MEDIUM Length; numeric, lowercase/uppercase, and special characters
2 or STRONG Length; numeric, lowercase/uppercase, and special characters; dictionary file
set global validate_password_policy=0;
set global validate_password_length=4;

3、1045, "Access denied for user 'root'@'119.85.172.32' (using password: YES)"

       关闭防火墙

     此时登录不上去MySQL

     centos7下免密登录 

     #vim /etc/my.cnf

     在[mysqld]后面任意一行添加 skip-grant-tables 保存退出  用来跳过密码验证的过程

     MySQL重启

update mysql.user set authentication_string=password("password") where user="root"
flush privileges;

      MySQL重启

ERROR 1045 (28000): Access denied for user 'root'@'localhost' (using password: NO)

选择自己的登录用户名

select user from mysql.user
查看自己的所有用户,我把用户名root更改为Rooobins

     


你可能感兴趣的:(MySQL)