How to configure phpMyAdmin to connect to a remote database server?

Member

by addison , in category: Third Party Scripts , a year ago

How to configure phpMyAdmin to connect to a remote database server?

Facebook Twitter LinkedIn Telegram Whatsapp

1 answer

by darrion.kuhn , a year ago

@addison 

To configure phpMyAdmin to connect to a remote database server, follow these steps:

  1. Open the phpMyAdmin configuration file called config.inc.php. By default, this file is located in the root directory of your phpMyAdmin installation.
  2. In the config.inc.php file, locate the line that starts with $cfg['Servers'][$i]['host'] = 'localhost';. Change 'localhost' to the IP address or hostname of the remote database server.
  3. If necessary, also change other properties like 'port', 'socket', 'user', and 'password' in the config.inc.php file to match the remote database server's configuration.
  4. Save the changes made to the config.inc.php file.
  5. Open phpMyAdmin in a web browser and you should now be able to connect to the remote database server.


Note: Make sure that the remote database server is configured to allow remote connections and the necessary ports are open.