Question

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


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 :

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

Without user password auth_type

Also modify the authentication method of the user on my MySQL DB Cluster @see [https://www.digitalocean.com/community/tutorials/how-to-install-linux-apache-mysql-php-lamp-stack-ubuntu-18-04#step-2-—-installing-mysql]

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

Case Closed :)

Same Issue

Same Issue

Try DigitalOcean for free

Click below to sign up and get $200 of credit to try our products over 60 days!

Sign up

Get our biweekly newsletter

Sign up for Infrastructure as a Newsletter.

Hollie's Hub for Good

Working on improving health and education, reducing inequality, and spurring economic growth? We'd like to help.

Become a contributor

Get paid to write technical tutorials and select a tech-focused charity to receive a matching donation.

Welcome to the developer cloud

DigitalOcean makes it simple to launch in the cloud and scale up as you grow — whether you're running one virtual machine or ten thousand.

Learn more
DigitalOcean Cloud Control Panel