Home > Database > phpMyAdmin > body text

How to set up phpmyadmin to automatically log in and cancel automatic login

王林
Release: 2019-12-13 13:55:04
Original
2911 people have browsed it

How to set up phpmyadmin to automatically log in and cancel automatic login

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 modify the file directly).

Open config.inc.php and find $cfg['Servers'][$i]['auth_type'], change

$cfg['Servers'][$i]['auth_type'] = 'cookie';
Copy after login
Copy after login

to

$cfg['Servers'][$i]['auth_type'] = 'config';
Copy after login
Copy after login

and then click below Append the following code:

$cfg['Servers'][$i]['user']          = 'root';      // 设置的mysql用户名
$cfg['Servers'][$i]['password']      = '123456';    // 设置的mysql密码
Copy after login

How to cancel phpMyAdmin automatic login?

Just change

$cfg['Servers'][$i]['auth_type'] = 'config';
Copy after login
Copy after login

to

$cfg['Servers'][$i]['auth_type'] = 'cookie';
Copy after login
Copy after login

and save.

Recommended related articles and tutorials: phpmyadmin tutorial

The above is the detailed content of How to set up phpmyadmin to automatically log in and cancel automatic login. 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!