Release Note
Validated on 4 Mar 2020 • Last edited on 24 Jan 2025
The DigitalOcean Managed Databases API now supports configuring the user
authentication plug-in for both new and existing MySQL users. This is useful
when needing to connect to a MySQL 8.0 cluster using an application or older
MySQL client that does not support the default caching_sha2_password
authentication plug-in.
For example, to create a new MySQL user
using the mysql_native_password
authentication plug-in, send a POST request
to /v2/databases/$DATABASE_ID/users
with a JSON body like:
{
"name": "php-app-01",
"mysql_settings": {
"auth_plugin": "mysql_native_password"
}
}
For more details, see the full reference documentation for the managed databases API.