Auto-login phpMyAdmin

前端 未结 6 2354
旧巷少年郎
旧巷少年郎 2020-12-29 03:31

We want to auto login users in phpMyAdmin. Now we have a web-interface, written in PHP. Users can login. After logging in, they can click on the SQL link in the

6条回答
  •  被撕碎了的回忆
    2020-12-29 03:37

    Sometimes when working at your local environment it annoys to login each time. To avoid it you can do the following:

    Add following lines at bottom of file:

    phpmyadmin\config.inc.php

    $cfg['LoginCookieValidity'] = 10000; // Keep long validity :)-
    $cfg['Servers'][$i]['user']          = 'root'; // Your user name
    $cfg['Servers'][$i]['password']      = 'root'; // Your password
    $cfg['Servers'][$i]['auth_type']     = 'config';
    

    After that shutdown your db server & restart again. Now check & you will see that you will login without entering user name & password.

提交回复
热议问题