Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

The configuration method of realizing automatic login and canceling automatic login by phpMyAdmin

2025-01-16 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >

Share

Shulou(Shulou.com)06/03 Report--

This article introduces the relevant knowledge of "phpMyAdmin to achieve automatic login and cancel automatic login configuration method". In the operation of actual cases, many people will encounter such a dilemma, so let the editor lead you to learn how to deal with these situations. I hope you can read it carefully and be able to achieve something!

First, how to set up phpMyAdmin automatic login?

First find config.sample.inc.php in the root directory and copy a file name to config.inc.php (if you already have a config.inc.php file, you can modify it directly).

Open config.inc.php and find $cfg ['Servers'] [$I] [' auth_type'] and set the

The copy code is as follows:

$cfg ['Servers'] [$I] [' auth_type'] = 'cookie'

Change to

The copy code is as follows:

$cfg ['Servers'] [$I] [' auth_type'] = 'config'

Then add the following code below:

The copy code is as follows:

Mysql user name set by $cfg ['Servers'] [$I] [' user'] = 'root'; / /

$cfg ['Servers'] [$I] [' password'] = '123456password; / / mysql password set

Second, how to cancel phpMyAdmin automatic login?

Just put

The copy code is as follows:

$cfg ['Servers'] [$I] [' auth_type'] = 'config'

Change to

The copy code is as follows:

$cfg ['Servers'] [$I] [' auth_type'] = 'cookie'

Just save it.

Warm reminder:

$cfg ['Servers'] [$I] [' auth_type'] has three optional values, namely, cookie, http, and config. Cookie and config are commonly used. When using cookie in a formal environment, the user is required to enter the correct user name and password, while when testing the server locally, config is generally used to save the user name and password after session failure, so as to save development time.

This is the end of the content of "phpMyAdmin to achieve automatic login and cancel automatic login configuration method". Thank you for reading. If you want to know more about the industry, you can follow the website, the editor will output more high-quality practical articles for you!

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Development

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report