Question

How to connect into DB cluster with PhpMyAdmin ?

Posted November 14, 2019 1.4k views
PHPDatabases

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 ?

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.

×
3 answers
Show answer This answer has been marked as resolved by mangprangstore.

Hello,

i’m dealing with the same trouble but i want to integrate a droplet with a cluster, is there any possibility of make this although both are not in a private network?

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

Submit an Answer