First download phpMyAdmin-4.0.9-all-languages
Unzip
unzip phpMyAdmin-4.0.9-all-languages.zip
Copy to the web installation directory
cp phpMyAdmin-4.0.9-all-languages /*/web/phpMyAdmin
Settings The phpmyadmin configuration file
vim ./phpMyAdmin/libraries/config.default.php
is about line 125
Change
$cfg['Servers'][$i]['host'] = ‘localhost’
to
$cfg['Servers'][$i]['host'] = ‘远程数据库服务器IP地址’
Now log in to phpMyAdmin on the web page and enter the account of the remote database and password, here are admin and 123456, which will be the database of the remote server.
Recommended related articles and tutorials: phpmyadmin tutorial
The above is the detailed content of How to use phpmyadmin to connect to the database remotely. For more information, please follow other related articles on the PHP Chinese website!