How can I set the installed phpmyadmin to automatic login!
(1) Find config in the root directory. inc. php (root directory) or config. default. php (root directory) And then: libraries \ config. default. php (Friendly reminder: Because different versions may involve different files, basically these three files ),
(2) Open config. inc. in php, find $ cfg ['servers'] [$ I] ['auth _ type'] and convert $ cfg ['servers'] [$ I] ['auth _ type'] = 'cookies '; the cookie in is changed to http or config, that is, $ cfg ['servers'] [$ I] ['auth _ type'] = 'http '; or $ cfg ['servers'] [$ I] ['auth _ type'] = 'config ';
(3) Add the following code below:
$ Cfg ['servers'] [$ I] ['user'] = 'root '; // set the mysql username $ cfg ['servers'] [$ I] ['Password'] = '000000'; // set the mysql password
Save it.
If you want to cancel Automatic phpmyadmin login. Just put $ cfg ['servers'] [$ I] ['auth _ type'] = 'http '; change to $ cfg ['servers'] [$ I] ['auth _ type'] = 'cooker'. Save the settings.
Articles you may be interested in
- How to Set automatic login for phpmyadmin
- PhpMyAdmin does not allow empty password login Solution
- Thinkphp automatic verification and automatic filling are invalid Solutions
- Use the PHP function memory_get_usage to obtain the current PHP memory consumption for program performance optimization.
- Reasons why PHP adds a backslash before the quotation mark and how PHP removes the backslash, there are three ways to disable the php magic quotation mark
- Learn to set five common MySQL database Parameters
- PhpMyAdmin Cannot start session without errors error Solution
- Mobile phone website width automatically adapts to mobile phone screen