While executing the code below there is a runtime error showing - Authentication plugin 'caching_sha2_password' is not supported | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

While executing the code below there is a runtime error showing - Authentication plugin 'caching_sha2_password' is not supported

import mysql.connector as con mydb= con.connect(host='localhost', user = 'username', password ='password', database= 'databasename');

17th Apr 2021, 8:55 AM
Kashish Juneja
Kashish Juneja - avatar
1 Answer
+ 1
There was a similar case before, but then it involved PHP, not Python. https://www.sololearn.com/Discuss/2690328/?ref=app
17th Apr 2021, 10:28 AM
Ipang