Hello, I'm trying to follow the instruction from this page: https://help.pythonanywhere.com/pages/AccessingMySQLFromOutsidePythonAnywhere/#from-python-code
However, I have the issue in this place:
connection = MySQLdb.connect(
user='your PythonAnywhere database username',
passwd='your PythonAnywhere database password',
host='127.0.0.1', port=tunnel.local_bind_port,
db='your database name, eg yourusername$mydatabase',
)
The error mesage is following:
(2059, "Authentication plugin 'mysql_native_password' cannot be loaded: dlopen(/opt/homebrew/Cellar/mysql/9.0.1/lib/plugin/mysql_native_password.so, 0x0002): tried: '/opt/homebrew/Cellar/mysql/9.0.1/lib/plugin/mysql_native_password.so' (no such file), '/System/Volumes/Preboot/Cryptexes/OS/opt/homebrew/Cellar/mysql/9.0.1/lib/plugin/mysql_native_password.so' (no such file), '/opt/homebrew/Cellar/mysql/9.0.1/lib/plugin/mysql_native_password.so' (no such file)")
It looks like, the connection is trying to be established to my local server instead of pythonanywhere's database.