How to connect into DB cluster with PhpMyAdmin ?

November 14, 2019 470 views
Databases PHP

I had DB cluster and was successfully connected remotely via new droplet with MySQL 8 installed on there.

root@confidential:~# mysql --version
mysql  Ver 8.0.18 for Linux on x86_64 (MySQL Community Server - GPL)
root@confidential:~# mysql -u doadmin -p -h db-mysql-sgp1-****-do-user-******-0.db.ondigitalocean.com -P 25060 -D defaultdb
Enter password:
Welcome to the MySQL monitor.  Commands end with ; or \g.
Your MySQL connection id is 897211
Server version: 8.0.17 Source distribution

Copyright (c) 2000, 2019, Oracle and/or its affiliates. All rights reserved.

Oracle is a registered trademark of Oracle Corporation and/or its
affiliates. Other names may be trademarks of their respective
owners.

Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.

mysql>

In this new droplet i’m also installing PhpMyAdmin under PHP 7.3,
and adding following configuration into /etc/phpmyadmin/config.inc.php

$i++;
$cfg['Servers'][$i]['host'] = 'CONFIDENTIAL';
$cfg['Servers'][$i]['user'] = 'USER-CENSOR';
$cfg['Servers'][$i]['password'] = 'PASSWORD';
$cfg['Servers'][$i]['auth_type'] = 'config';

Unfortunately when logeed in using the same user/pass that worked in SSH terminal (as shown above), the PhpMyAdmin shown following errors

Error
MySQL said: Documentation

#2054 - The server requested authentication method unknown to the client
 mysqli_real_connect(): The server requested authentication method unknown to the client [caching_sha2_password]
 mysqli_real_connect(): (HY000/2054): The server requested authentication method unknown to the client
 phpMyAdmin tried to connect to the MySQL server, and the server rejected the connection. You should check the host, username and password in your configuration and make sure that they correspond to the information given by the administrator of the MySQL server.

How to connect into DB cluster with PhpMyAdmin ?

1 Answer
Show answer This comment has been marked as resolved by mangprangstore.
Have another answer? Share your knowledge.