phpMyAdmin configuration

2019-03-09 12:27发布

  • How do I increase phpmyadmin session timeout?
  • How do I increase phpmyadmin import file size limit(currently it says Max: 2,048KiB). I tried changing upload_max_filesize in php.ini but it didn't make any difference.

10条回答
叼着烟拽天下
2楼-- · 2019-03-09 12:58

Edit phpMyAdmin's config.inc.php and add or update LoginCookieValidity the value as follows: $cfg['LoginCookieValidity'] = 3600 * 9; // 9 hours

in wamp or xamp or anything you use at php.ini Search for "upload_max_filesize" this is where you should change it, we suggest you not use more than 64M filesize cause sometimes it makes crash: upload_max_filesize = 64M Save and exit.

查看更多
我只想做你的唯一
3楼-- · 2019-03-09 13:04

I add to Poelinca's answer that the mechanism of this limit can be found in the pma sources under libraries/Config.class.php , function checkUploadSize() : it will use upload_max_filesize if defined or 5M else, and if max_upload_size is also defined it will get the min of the two. (PMA version 3.3.7deb7)

查看更多
虎瘦雄心在
4楼-- · 2019-03-09 13:06

config.inc.php > $cfg['LoginCookieValidity'] = 3600 * 9; // 9 hours

edit from the link posted by ajreal: LoginCookieValidity

for the second question , after changing upload_max_filesize in php.ini did you restart apache ( or whatever webserver you use ) ?

查看更多
Luminary・发光体
5楼-- · 2019-03-09 13:06

Rather than setting session.gc_maxlifetime in the php.ini file, better to add the following to your config.inc.php file (typically in the /etc/phpmyadmin directory):

ini_set('session.gc_maxlifetime', '86400');

That way you don't compromise security for other PHP scripts, or cause excessive clutter in the RAM due to infrequent Garbage Collection.

查看更多
登录 后发表回答