Home  >  Article  >  Backend Development  >  How to configure phpmyadmin to connect to a remote database_PHP tutorial

How to configure phpmyadmin to connect to a remote database_PHP tutorial

WBOY
WBOYOriginal
2016-07-13 17:14:43965browse

Find the config.inc.php file in your phpmyadmin directory and open it with DW (note that you must not open it with Notepad, if it is a uft8 encoded file, you may have problems)

Find

The 'localhost' after ['host'] is changed to the remote database IP

Finally, restart mysql. The command mode is as follows
The code is as follows
 代码如下 复制代码

$cfg['Servers'][$i]['host']    = '192.168.1.10';

Copy code

$cfg['Servers'][$i]['host'] = '192.168.1.10';

Note: 192.168.1.10 is the IP of the remote database
After modification---Start menu----Run----cmd (Enter)----net stop mysql (Enter)--------net start mysql (Enter) )

If you don’t know the command method, we can enter the service console of the computer, then find mysql.exe in the application server and restart it. http://www.bkjia.com/PHPjc/628930.htmlwww.bkjia.comtrue
http: //www.bkjia.com/PHPjc/628930.html
TechArticle
Find the config.inc.php file in your phpmyadmin directory and open it with DW (note that you must not open it with Notepad Oh, if it is a uft8 encoded file, I am afraid there will be a problem) After finding ['host']...
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