Home  >  Article  >  Database  >  How to configure phpMyAdmin to connect to a remote database

How to configure phpMyAdmin to connect to a remote database

藏色散人
藏色散人forward
2021-02-18 17:33:043055browse

The following tutorial column of phpmyadmin will introduce you to phpMyAdmin configuration to connect to the remote database. I hope it will be helpful to friends in need!

phpMyAdmin configuration to connect to the remote database

Background

  • wampserver 3.1.7, Apache 2.4.37, PHP 7.2.14 , MySql 5.7.24, thinkcmf 5.0

Configuration

Search config.inc in the wampserver installation directory and find this php file:
How to configure phpMyAdmin to connect to a remote database

##Note that is the one in the phpmyadmin directory, don’t find it wrong, because there are other files with the same name!

How to configure phpMyAdmin to connect to a remote database

Because the project uses the

mysql database, the host, user, and password are changed. So if the project uses mariadb, for example, you need to find here to change the corresponding domain, username and password:

How to configure phpMyAdmin to connect to a remote database

Then restart wampserver, click phpmyadmin and enter You can log in with your username and password and see the remote database you are connected to.

The above is the detailed content of How to configure phpMyAdmin to connect to a remote database. For more information, please follow other related articles on the PHP Chinese website!

Statement:
This article is reproduced at:segmentfault.com. If there is any infringement, please contact admin@php.cn delete