Home >Database >phpMyAdmin >How to use phpmyadmin to connect to the database remotely

How to use phpmyadmin to connect to the database remotely

王林
王林Original
2019-12-13 13:26:302401browse

How to use phpmyadmin to connect to the database remotely

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!

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