Hello,
We have a VPS with cPanel / WHM. Recently, we have outsourced our database to take the load off the VPS.
We would like to use cPanel's PhpMyAdmin to manage the external database.
For this, we followed the following tutorial to add an additional MySQL server to the configuration of PhpMyAdmin: https://support.cpanel.net/hc/en-us/articles/4402637529623-How-to-add-a-second-server-to-phpMyAdmin
Here is more details:
And we added the following code at the end of the file:
When we access PhpMyAdmin from cPanel, we may well select the desired server (see Capture.PNG), but many errors appear.
From cPanel > PhpMyAdmin ("Cloud Database" selected):

From WHM > PhpMyAdmin ("Cloud Database" selected):

Note that on the screenshots above, I have hidden the IP of our server with "XXX.XXX.XXX.XXX" and the name of our cPanel account with "cpanel_account_username".
Indeed, we do not know where to put the login credentials to the external MySQL database for cPanel PhpMyAdmin.
Note that from cPanel or WHM, we are able to connect to the external MySQL database by executing the following command:
and entering the password.
However, despite a lot of searches and tests, we do not know how to "give" these login credentials to cPanel PhpMyAdmin.
Is it possible?! If so, does a cPanel configuration file allow us this? Or what manipulation can we do to make this work?
Thank you in advance for your help!
We have a VPS with cPanel / WHM. Recently, we have outsourced our database to take the load off the VPS.
We would like to use cPanel's PhpMyAdmin to manage the external database.
For this, we followed the following tutorial to add an additional MySQL server to the configuration of PhpMyAdmin: https://support.cpanel.net/hc/en-us/articles/4402637529623-How-to-add-a-second-server-to-phpMyAdmin
Here is more details:
Code:
sudo nano /usr/local/cpanel/base/3rdparty/phpMyAdmin/config.inc.php
PHP:
$i++;
$cfg['Servers'][$i]['verbose'] = 'Cloud Database';
$cfg['Servers'][$i]['auth_type'] = 'cpanel';
$cfg['Servers'][$i]['host'] = 'xxxxx.xxxxx.ovh.net';
$cfg['Servers'][$i]['port'] = 'xxxxx';
$cfg['Servers'][$i]['connect_type'] = 'tcp';
$cfg['Servers'][$i]['compress'] = false;
$cfg['Servers'][$i]['AllowNoPassword'] = false;
$cfg['Servers'][$i]['DisableIS'] = false;
When we access PhpMyAdmin from cPanel, we may well select the desired server (see Capture.PNG), but many errors appear.
From cPanel > PhpMyAdmin ("Cloud Database" selected):

From WHM > PhpMyAdmin ("Cloud Database" selected):

Note that on the screenshots above, I have hidden the IP of our server with "XXX.XXX.XXX.XXX" and the name of our cPanel account with "cpanel_account_username".
Indeed, we do not know where to put the login credentials to the external MySQL database for cPanel PhpMyAdmin.
Note that from cPanel or WHM, we are able to connect to the external MySQL database by executing the following command:
Code:
mysql --host = "xxxxx.xxxxx.ovh.net" --user = "xxxxx" --port = "xxxxx" -p
However, despite a lot of searches and tests, we do not know how to "give" these login credentials to cPanel PhpMyAdmin.
Is it possible?! If so, does a cPanel configuration file allow us this? Or what manipulation can we do to make this work?
Thank you in advance for your help!
Attachments
-
9.8 KB Views: 3