I am attempting to connect an existing Drupal 8 site to a DigitalOcean managed Database.
The connection info I’ve received from DigitalOcean:
username = digitaloceanadmin password = password host = nameofmydbcluster.db.ondigitalocean.com port = 25060 sslmode = REQUIRED
I’ve made the adjustments to settings.php:
$databases['default']['default'] = array ( 'database' => 'dbname', 'username' => '...', 'password' => '...', 'prefix' => '', 'host' => 'dbclustername.db.ondigitalocean.com', 'port' => '25060', 'namespace' => 'Drupal\Core\Database\Driver\mysql', 'driver' => 'mysql', );
However, I’m getting the following error:
PDOException: SQLSTATE[HY000] [2054] The server requested authentication method unknown to the client in ...
More errors when I drush cr
:
In Connection.php line 416: SQLSTATE[HY000] [2054] The server requested authentication method unknown to the client In Connection.php line 416: PDO::__construct(): The server requested authentication method unknown to the client [caching_sha2_password]
I am running Drupal 8.8.1 with php7.2. The DB version on remote is MySQL 8.
Any help would be greatly appreciated.