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:
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!