phpmyadmin increase timeout limit [SOLVED]
phpmyadmin increase timeout limit
I've an sql file which is always failed to import because of phpmyadmin timeout.
How to increase timeout in phpmyadmin? I really can't find phpmyadmin config file on debian server.
thank you
Zoltan
Re: phpmyadmin increase timeout limit
Better try bigdump.
https://www.ozerov.de/bigdump/
This one works perfectly with huge imports.
Tobi
-----------------------------
wewoco.de
Das Forum für Reseller, Digital-Agenturen, Bildschirmarbeiter und Mäuseschubser
Re: phpmyadmin increase timeout limit
i would recommend using shell for large imports.
mysql -u USERNAME -p DATABASE < DUMPFILE.sql
Martin
Re: phpmyadmin increase timeout limit
The VPS itself not the strongest but enough powerful for this "small/large" database: has 2cpu cores and 2GB RAM, no any other website or task running on it.
That is why I try to increase timeout. I think +30 seconds will be more than enough.
Edit: anyway I receive 504 gateway timeout at phpmyadmin import.
Re: phpmyadmin increase timeout limit
Anyway, it will work on command line as Martin suggested or with the script I linked.
Tobi
-----------------------------
wewoco.de
Das Forum für Reseller, Digital-Agenturen, Bildschirmarbeiter und Mäuseschubser
Re: phpmyadmin increase timeout limit
So made this question out of this problem.
How to increase phpmyadmin time limits just for fun?

Re: phpmyadmin increase timeout limit
the phpmyadmin values comes from the KeyHelp FPM Pool itself. These can be found within /etc/php/7.2/fpm/pool.d/keyhelp.conf
After changes, php7.2-fpm service needs to be restarted.
Martin
-
- Posts: 588
- Joined: Tue 9. Feb 2016, 16:44
Re: phpmyadmin increase timeout limit
Sometimes it works, if you prepend this line (start of the file) ...
Code: Select all
SET AUTOCOMMIT = 0;SET FOREIGN_KEY_CHECKS=0;
Code: Select all
SET FOREIGN_KEY_CHECKS = 1;COMMIT; SET AUTOCOMMIT = 1;
Re: phpmyadmin increase timeout limit
the first time related setting is the max_execution _time in the PHP-FPM Pool
The second one is the PHP-FPM timeout in /etc/apache2/keyhelp/keyhelp.conf
Code: Select all
<Proxy fcgi://keyhelp_keyhelp.socket>
ProxySet connectiontimeout=5 timeout=120
</Proxy>
Florian Cheno
**************************************************************
Keyweb AG - Die Hosting Marke
Neuwerkstr. 45/46, 99084 Erfurt / Germany
http://www.keyweb.de - http://www.keyhelp.de
**************************************************************
Re: phpmyadmin increase timeout limit
If you think these values are fine, than sure, adjust them as you like, but i would argue that the majority of admins would not increase this setting up to 60 minutes. But hey, everybody can edit the mentioned config files as he/she like

This is not necessarily be the case. So changing the values in the files will be fine and will remain after KeyHelp updates.But they will be changed back with the next Keyhelp Update.
Alexander Mahr
**************************************************************
Keyweb AG - Die Hosting Marke
Neuwerkstr. 45/46, 99084 Erfurt / Germany
http://www.keyweb.de - http://www.keyhelp.de
**************************************************************
Re: phpmyadmin increase timeout limit
There is no timeout value solely for phpMyAdmin, this is not how PHP works.
"max_execution_time" is a general value for all vhosts using this particular PHP-FPM pool file, which are:
- KeyHelp
- KeyHelp webmail tools (Roundcube / Rainloop)
- KeyHelp database administration tools (phpMyAdmin / Adminer)
Alexander Mahr
**************************************************************
Keyweb AG - Die Hosting Marke
Neuwerkstr. 45/46, 99084 Erfurt / Germany
http://www.keyweb.de - http://www.keyhelp.de
**************************************************************
Re: phpmyadmin increase timeout limit
Re: phpmyadmin increase timeout limit
Alexander Mahr
**************************************************************
Keyweb AG - Die Hosting Marke
Neuwerkstr. 45/46, 99084 Erfurt / Germany
http://www.keyweb.de - http://www.keyhelp.de
**************************************************************
Re: phpmyadmin increase timeout limit [SOLVED]

You can also put the following into the config file /home/keyhelp/www/phpmyadmin/config.inc.php
Changing the time accordingly to your needs.
Code: Select all
ini_set('session.gc_maxlifetime', <TIME>);
$cfg['LoginCookieValidity'] = <TIME>;
Alternatively use an own instance of phpMyAdmin which you install somewhere on your server an adjust the "Configuration -> Tools -> Database-Administration -> Access URL" to the URL of your phpMyAdmin instance and configure it the way you want.
Alexander Mahr
**************************************************************
Keyweb AG - Die Hosting Marke
Neuwerkstr. 45/46, 99084 Erfurt / Germany
http://www.keyweb.de - http://www.keyhelp.de
**************************************************************