Change Auth Type of User in DO MySQL Managed Database

August 23, 2019 259 views
DigitalOcean Ghost Databases MySQL

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!

1 Answer
bobbyiliev MOD August 23, 2019
Accepted 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

Have another answer? Share your knowledge.