Home > database > Pymysql connection mysql8 non-root users appear when 1045 error
Pymysql connection mysql8 non-root users appear when 1045 error
Time:09-19
According to you before some of the summary, will have two accounts root password authentication with Adam (i.e., the plugin fields) modified to mysql_native_password, but at this time the following problems: Using root can normal connection > The db=pymysql. Connect (" 127.0.0.1 ", "root", "password", "exercise_1") >
But problems when using other accounts will be: > Db=pymysql. Connect (" localhost ", "Adam", "Adam" and "exercise_1");
Error: pymysql. Err. OperationalError: (1045, "Access denied for user 'Adam' @ 'localhost' (using password: NO)")
Has been troubled for a long time, could you tell me where is the problem?
CodePudding user response:
1, password mistake, 2, the user didn't access to the database,