Home >Database >Mysql Tutorial >Can I manage a remote MySQL server using my local phpMyAdmin client?

Can I manage a remote MySQL server using my local phpMyAdmin client?

Barbara Streisand
Barbara StreisandOriginal
2024-11-15 20:50:02443browse

Can I manage a remote MySQL server using my local phpMyAdmin client?

Accessing Remote Server with Local phpMyAdmin Client

If you have a remote MySQL server and a local phpMyAdmin client, is it possible to remotely manage the server through phpMyAdmin? The answer is yes!

To do this, you need to configure the phpMyAdmin configuration file (config.inc.php) on your local computer. Append the following lines to the bottom of the file:

$i++;
$cfg['Servers'][$i]['host'] = 'HostName:port'; //provide hostname and port if other than default
$cfg['Servers'][$i]['user'] = 'userName';   //user name for your remote server
$cfg['Servers'][$i]['password'] = 'Password';  //password
$cfg['Servers'][$i]['auth_type'] = 'config';       // keep it as config

After saving the modified configuration file, refresh the phpMyAdmin page. You should now see a "Current Server" dropdown menu with two options: 127.0.0.1 (your local server) and the hostname that you specified in the configuration. You can now switch between the servers to remotely manage the MySQL database hosted on the remote server.

For more detailed instructions and troubleshooting tips, please refer to the following resource:

  • [Access Remote MySQL Server using Local PhpMyAdmin](http://sforsuresh.in/access-remote-mysql-server-using-local-phpmyadmin/)

The above is the detailed content of Can I manage a remote MySQL server using my local phpMyAdmin client?. For more information, please follow other related articles on the PHP Chinese website!

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn