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

How to use phpmyadmin to connect to the database remotely

王林
Release: 2019-12-13 13:26:30
Original
2404 people have browsed it

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 after login

Copy to the web installation directory

cp phpMyAdmin-4.0.9-all-languages /*/web/phpMyAdmin
Copy after login

Settings The phpmyadmin configuration file

vim ./phpMyAdmin/libraries/config.default.php
Copy after login

is about line 125

Change

$cfg['Servers'][$i]['host'] = ‘localhost’
Copy after login

to

$cfg['Servers'][$i]['host'] = ‘远程数据库服务器IP地址’
Copy after login

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!

Related labels:
source:如何使用phpmyadmin远程连接数据库
Statement of this Website
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template