Change caching_sha2_password to mysql_native_password on a DigitalOcean's Managed MySQL Database

preview_player
Показать описание
As caching_sha2_password was introduced in MySQL 8.0, but the PHP has not implemented this yet, in order to be able to connect to MySQL 8 from a PHP script, you need to change your authentication method from caching_sha2_password to mysql_native_password.

This is a short demo on how to do that change and connect to a DigitalOcean Managed MySQL.

I use DigitalOcean for all of my demos, you can use the link below to get a free $100 credit and spin up your own Linux servers!

Follow me on:

Рекомендации по теме
Комментарии
Автор

Note: DigitalOcean now offers a way to make that change directly via their Control Panel
- Go to your Control Panel
- Then go to your managed database
- Click on Users
- Then create a new user with the authentication method that you need

bobbyiliev_
Автор

One question, since I do not have access to copy that link drom 1:41 what should I do?

kazushisakuraba
Автор

After entering the password, command prompt shows (on windows)
plugin caching_sha2_password could not be loaded : Specified model could not be found. Library path is 'caching_sha2_password.dll'.
Please Help Me with this.

shreyakini
Автор

The default user that has the username `doadmin` does not have the privileges.
Did anyone encounter this issue?

MAHDYHAMADTheBeast
Автор

legit po ba ito caching sha 2 password po kasi palagi nakikita ko kahit my password naman nagawa po ? error po sya palagi caching sha2 password daw dapat ?

jovelynmae