How to connect into DB cluster with PhpMyAdmin ?

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-****** -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

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


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

$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

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 ?

Submit an answer

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!

Sign In or Sign Up to Answer

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

Well lucky me i was able to figuring out the problem. it’s the additional PhpMyAdmin configuration which cause the problem. After i’m editing the additional configuration became :

$cfg['Servers'][$i]['host'] = 'CONFIDENTIAL';

Without user password auth_type

Also modify the authentication method of the user on my MySQL DB Cluster @see [—-installing-mysql]

I was able to logged in to my DB Cluster via PhpMyAdmin.

Case Closed :)

Want to learn more? Join the DigitalOcean Community!

Join our DigitalOcean community of over a million developers for free! Get help and share knowledge in Q&A, subscribe to topics of interest, and get courses and tools that will help you grow as a developer and scale your project or business.

Same Issue

Same Issue

I am having Mysql Cluster setup. I am connecting this phpMyadmin through one of [MYSQLD] server, As I installed phpmyadmin on [MYSQLD] server. DB related all task like DB creation, table creation…can be easily done through phpadmin in cluster env.

Few things like user creations, permission etc is not able to manage through phpadmin when perform with in cluster DB