score:3

Accepted answer

Which version of the MySQL C connector are you using? MySql changed the default authentication protocol in MySQL 8, so I would suggest using the older C connector (any version older than 8). If you want to use the MySQL 8 connector then you will need to pass along default-auth=mysql_native_password in some fashion.

The same issue exists using the MySQL 8 C connector and connecting to an older version of MySQL (see https://bugs.mysql.com/bug.php?id=90994).


More questions

More questions with similar tag