Home  >  Article  >  Database  >  How to set up phpmyadmin to automatically log in and cancel automatic login

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

王林
王林Original
2019-12-13 13:55:042792browse

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';

to

$cfg['Servers'][$i]['auth_type'] = 'config';

and then click below Append the following code:

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

How to cancel phpMyAdmin automatic login?

Just change

$cfg['Servers'][$i]['auth_type'] = 'config';

to

$cfg['Servers'][$i]['auth_type'] = 'cookie';

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!

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