By Al Wilde
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!
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!
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
Get paid to write technical tutorials and select a tech-focused charity to receive a matching donation.
Full documentation for every DigitalOcean product.
The Wave has everything you need to know about building a business, from raising funding to marketing your product.
Stay up to date by signing up for DigitalOcean’s Infrastructure as a Newsletter.
New accounts only. By submitting your email you agree to our Privacy Policy
Scale up as you grow — whether you're running one virtual machine or ten thousand.
Sign up and get $200 in credit for your first 60 days with DigitalOcean.*
*This promotional offer applies to new accounts only.