Question

Change Auth Type of User in DO MySQL Managed Database

Posted August 23, 2019 1.4k views
MySQL DigitalOcean Ghost Databases

Hi all,

Currently diving into the world of Kubernetes and thought I’d set up a managed database on Digital Ocean while I’m at it. I’ve set up Ghost no problem, and am trying to get it to use a MySQL database rather than it’s default SQLite. So I’ve entered in my host and credentials for my DO database cluster but get the following error when trying to start Ghost: ER_NOT_SUPPORTED_AUTH_MODE: Client does not support authentication protocol requested by server; consider upgrading MySQL client

From what I’ve read Ghost doesn’t support the new authentication in MySQL 8. From what I understand I would need to change the authentication type for my MySQL user from caching_sha2_password to mysql_native_password or mysql_old_password. Is this possible?

Thanks!

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

1 answer

Hello,

What you could do is just create a new user with mysql_native_password. To do that you could use the following:

CREATE USER 'your_user'@your_server_ip IDENTIFIED WITH mysql_native_password BY 'your_password';

Or you could adjust this for your current user with:

ALTER USER myuser IDENTIFIED WITH mysql_native_password BY 'mypassword';

Hope that this helps!
Regards,
Bobby

Submit an Answer