Home  >  Article  >  Backend Development  >  PHP settings phpMyAdmin set login password_PHP tutorial

PHP settings phpMyAdmin set login password_PHP tutorial

WBOY
WBOYOriginal
2016-07-13 10:32:07784browse

phpMyAdmin is directly connected to MYSQL, so security is very important. Some friends do not set a login password for phpMyAdmin for convenience. This is very dangerous. If this address is known by others, then your MYSQL is finished. So for security reasons, we still have to set a password for phpMyAdmin. Under normal circumstances, this password is the same as the MYSQL password. By default, phpMyAdmin does not enable the function of logging in and re-entering. We can enable this through the following code Function:

Open config.inc.php in the root directory of phpMyAdmin and modify it according to the following lines:

 1$cfgServers[$i]['auth_type']= 'cookie';

There are three parameters here, cookie is one of them, and the other two parameters are config and http. config means: according to the password in the configuration file (that is, the standard method). This method does not have authentication; http : Use HTTP authentication; cookie: Use COOKIE for login authentication. If you use IIS+PHP, HTTP authentication is invalid. This function can only be used in the APACHE server environment. Under normal circumstances, the COOKIE method is used.

www.bkjia.comtruehttp: //www.bkjia.com/PHPjc/756841.htmlTechArticlephpMyAdmin is directly connected to MYSQL, so security is very critical. Some friends do not do it for convenience. phpMyAdmin sets a login password, which is very dangerous. If this address...
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