views:

19

answers:

1

Hello!

I have a local phpMyAdmin (installed via apt-get) adn I'm tired of entering login and password every time I try to open it. Database contains no sensitive info, just test tables, and is visible only from 127.0.0.1

I want phpMyAdmin already be logged in as root user with password 1234 (for example) when I open it. How do I do that?

P.S. Saving password in a browser is not what I want.

SOLUTION:

    $cfg['Servers'][$i]['user']          = 'root';
    $cfg['Servers'][$i]['password']      = '1234'; // use here your password
    $cfg['Servers'][$i]['auth_type']     = 'config';
+1  A: 

You should be less lazy and start by looking at the documentation because it's all described in detail.

http://www.phpmyadmin.net/documentation/Documentation.html#config

So basically, you set auth_type to config, and give it the correct user and password.

wimvds