I had the same problem and passing auth_plugin='mysql_native_password'
did not work, because I accidentally installed mysql-connector
instead of mysql-connector-python
(via pip3). Just leaving this here in case it helps someone.
More Related Contents:
- Python read from txt and save into mysql
- Lost connection to MySQL server during query
- How to install Python MySQLdb module using pip?
- Does Python support MySQL prepared statements?
- How to convert SQL Query result to PANDAS Data Structure?
- How do I get the “id” after INSERT into MySQL database with Python?
- Escape string Python for MySQL
- How to install MySQLdb (Python data access library to MySQL) on Mac OS X?
- How do I get a raw, compiled SQL query from a SQLAlchemy expression?
- Load CSV data into MySQL in Python
- Enable Python to Connect to MySQL via SSH Tunnelling
- Inserting a Python datetime.datetime object into MySQL
- How to replace Django’s primary key with a different integer that is unique for that table
- MySQL — Joins Between Databases On Different Servers Using Python?
- Using a Python dict for a SQL INSERT statement
- Python Mysql, “commands out of sync; you can’t run this command now”
- How do I escape % from python mysql query
- Bulk insert with SQLAlchemy ORM
- RuntimeError: working outside of application context
- Why are some mysql connections selecting old data the mysql database after a delete + insert?
- ImportError: No module named MySQLdb
- Can’t install mysql-python (newer versions) in Windows
- Using Django database layer outside of Django?
- How to move a model between two Django apps (Django 1.7)
- How do i cast char to integer while querying in django ORM?
- flake8 complains on boolean comparison “==” in filter clause
- How do I get time from a datetime.timedelta object?
- Python issue:Unable to find vcvarsall.bat [duplicate]
- Context manager for Python’s MySQLdb
- Retrieve query results as dict in SQLAlchemy