1. How to set phpMyAdmin to log in automatically?
First find config.sample.inc.php in the root directory and copy the file name and change it to config.inc.php (if the config.inc.php file already exists, just modify the file directly).
Open config.inc.php and find $cfg['Servers'][$i]['auth_type'], copy the code
as follows. :$cfg['Servers'][$i]['auth_type'] = 'cookie';
changed to
Copy code The code is as follows:$cfg['Servers'][$i]['auth_type'] = 'config';
Then add the following below Code:
Copy code The code is as follows:$cfg['Servers'][$i]['user'] = 'root '; // Set mysql user name
$cfg['Servers'][$i]['password'] = '123456'; // Set mysql password
2. How to cancel phpMyAdmin automatic login?
Just copy the code
The code is as follows:$cfg['Servers'][$ i]['auth_type'] = 'config';
is changed to
Copy code The code is as follows:$ cfg['Servers'][$i]['auth_type'] = 'cookie';
Save it.
Warm reminder: $cfg['Servers'][$i]['auth_type'] has three candidate values, namely cookie, http, config. The most commonly used ones are cookies and config. When in a formal environment, cookies are used, requiring users to enter the correct username and password. When testing the server locally, config is generally used to avoid having to enter the username and password again after the session expires, thereby saving development time.
http://www.bkjia.com/PHPjc/769242.html
www.bkjia.comtruehttp: //www.bkjia.com/PHPjc/769242.htmlTechArticle1. How to set up phpMyAdmin to log in automatically? First, find config.sample.inc.php in the root directory and copy the file name and change it to config.inc.php (if the config.inc.php file already exists, just...
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