Question

Change Auth Type of User in DO MySQL Managed Database

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!


Submit an answer


This textbox defaults to using Markdown to format your answer.

You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

Sign In or Sign Up to Answer

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.

Bobby Iliev
Site Moderator
Site Moderator badge
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

Try DigitalOcean for free

Click below to sign up and get $200 of credit to try our products over 60 days!

Sign up

Get our biweekly newsletter

Sign up for Infrastructure as a Newsletter.

Hollie's Hub for Good

Working on improving health and education, reducing inequality, and spurring economic growth? We'd like to help.

Become a contributor

Get paid to write technical tutorials and select a tech-focused charity to receive a matching donation.

Welcome to the developer cloud

DigitalOcean makes it simple to launch in the cloud and scale up as you grow — whether you're running one virtual machine or ten thousand.

Learn more
DigitalOcean Cloud Control Panel