I tried connecting with MySQL using python3. But
I got an error saying that I couldn't proceed.
With python 2.7.16, it worked with reference to this, but https://qiita.com/yusuke_dev/items/7f0ca12ced72363f9448
import mysql.connector as mydb
conn = mydb.connect(
host=_host,
port=_port,
user=_user,
password=_passwd,
database=_dbname,
auth_plugin='mysql_native_password'
)
By putting ```auth_plugin ='mysql_native_password'`` `in the connect function, it also worked in python 3.8.0.
Recommended Posts