Home > Database > phpMyAdmin > body text

How to set phpmyadmin to log in from the external network

Release: 2019-12-10 13:32:59
Original
3689 people have browsed it

How to set phpmyadmin to log in from the external network

How to set phpmyadmin to log in to the external network:

First, open the LAN access configuration file:

Select Apachehttpd.conf and search for the keyword deny from, you will find a line Allow from 127.0.0.1 under deny from, and then change 127.0.0.1 to all, that is, Allow from all allows anyone to access, and restart the apache service to allow external network access.

Second. Turn on phpmyadmin external access permissions (this function can be turned on if necessary, but it is not recommended for database security). Find the alias directory in the WAMP installation directory and modify the phpmyadmin.conf configuration file, the same as httpd.conf , change Allow from 127.0.0.1 to: Allow from all.

Third, to set up the database, you must enter the username and password to log in. Modify the configuration file: config.inc.php

First, please modify the database password. After installation, you can click phpmyadmin in the WAMP tray icon Enter the database,

In the "Permissions" in the middle of the phpmyadmin page, you can see the "User List". There is a row of user information below, that is, the rootlocalhost row. Click the "Edit Permissions" icon on the far right of this row. , find "Change Password" on the new page, set a password for the root user, and click "Execute".

Then modify the configuration file: config.inc.php, the file path is: \wamp\apps\phpmyadmin3.1.1,

Find $cfg[''Servers''][$i ][''password''] = ''''; Modify it $cfg[''Servers''][$i][''password''] = ''The password you set''; Reopen phpmyadmin The visit is complete.

Recommended learning: phpmyadmin tutorial

The above is the detailed content of How to set phpmyadmin to log in from the external network. For more information, please follow other related articles on the PHP Chinese website!

Related labels:
source:php.cn
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
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!