phpMyAdmin - changing the authentication timeout value and increasing default number of result in browse mode.

Tagged:  

Sometime you might get crazy for the authentication timeout while working with phpMyAdmin. By default the timeout value is set to 1800 seconds which is 30 minutes.

You can easily increase this limit by editing your config file for phpMyAdmin. Simply open the config file (config.inc.php) and add following config variable with increased/decreased value.

$cfg['LoginCookieValidity'] = 36000; // In seconds 

Another thing, I hate to browse the records of a table by clicking next -> next -> and next. So, I changed the default listing from 30 to 100.
Add following config variable and your preferred number of records in browse mode.

$cfg['MaxRows'] = 100;

That's all. Hope this helps.

Comments

the quick timeout on my local dev box has been driving me crazy for a long time, but i've been too lazy to figure out how to change it. a quick google search lead me right here, and now i'm all set. the default limit of 30 rows in browsing tables was another one that i've been suffering with for awhile. thanks, thanks, thanks!

In ubuntu karmic koala the config.inc.php can be found inside the directly /etc/phpmyadmin/.
If you open the file using vim or any other editor you can't find a line containing the statement $cfg['LoginCookieValidity']
So what you have to do is, add the line under server settings and save the file.
Then next time you login, you can see the change get effected.

Just wanted to say thanks, been wanting to change the timeout and you made it easy. The max rows where bonus, though I often thought it would be nice to change that too so... Thanks!

Thanks a lot!

Also, at line 359 (phpMyAdmin version 3.1.1), edit getValue('LoginCookieValidity') > 1800, change the 1800 there too.

-neuroxik

hi

hi frendz, Sqlyog the name sounds great as well the tool. I am best profiter from this db management tool. I tried with other tools but was not convinced as of this. So no second thought please try ....:)

© Hossain Khan - Some rights reserved.
Creative Commons License This site is licensed under a Creative Commons Attribution-Noncommercial 2.5 License.