Bobcares

WeSupport

Call Us! 1-800-383-5193
Call Us! 1-800-383-5193
Call Us! 1-800-383-5193

Need Help?

Emergency Response Time custom

Our experts have had an average response time of 11.06 minutes in March 2021 to fix urgent issues.

We will keep your servers stable, secure and fast at all times for one fixed price.

PHPMyAdmin import database timeout – How to resolve

by | May 8, 2021

Recently, one of our customers came across the PHPMyAdmin import database timeout error while importing SQL files into PHPMyAdmin.

It takes a long time and displays the timeout error.

As part of our Server Management Services, we assist our customers with several PHP queries.

Today, let us see how we can resolve this error.

 

PHPMyAdmin import database timeout

This error can occur if the database size is too large or the network connection is too slow.

PHPMyAdmin does not rely on the timeout or memory limit set in cPanel. It takes its values from the server default timeout specified in WHM.

PHPMyAdmin import database timeout

 

Solutions

1. If we have shell access, we log in to the user account as the cPanel user and run:

# mysql -u username -p

In the prompt we enter the password then run the command:

mysql> use database_name;

Then we import the database:

source /our/path/to/backup.sql;

OR

mysql database_name < /our/path/to/backup.sql;

Our Support Techs recommend this method if the database size is large.

If in case there is no shell access, we have to contact the hosting provider with the backup file.

2. If the import is to be done via cPanel provided PHPMyAdmin itself, then we need to increase the timeout.

To do so, go to, WHM >> Tweak Settings >> cPanel PHP max execution time.

3. Another option is to import the backup as chunks but it is more complex.

4. To increase the phpMyAdmin Session Timeout, open config.inc.php in the root phpMyAdmin directory and add:

$cfg[‘LoginCookieValidity’] = <your_new_timeout>;

Here, the your_new_timeout is a number larger than 1800.

5. If we use WAMP, then there is a file in <our-wamp-dir>\alias\phpmyadmin.conf which overrides a few php.ini options.

We edit:

# To import big file we can increase values
php_admin_value upload_max_filesize 512M
php_admin_value post_max_size 512M
php_admin_value max_execution_time 600
php_admin_value max_input_time 600

6. In cPanel/WHM, the location of file config.default.php is under /usr/local/cpanel/base/3rdparty/phpMyAdmin/libraries.

But if we use Plesk, change the settings in /usr/local/psa/admin/htdocs/domains/databases/phpMyAdmin/libraries/config.default.php.

We change $cfg[‘ExecTimeLimit’] = 300; to $cfg[‘ExecTimeLimit’] = 0;

Then we restart apache and mysql services.

We can restart with Plesk UI or use:

/etc/init.d/psa restart and /etc/init.d/httpd restart

7. Starting from Plesk 12.5, we can import databases via Plesk.

To do so, browse to Home > Domains > example.com > Databases and use importing functionality.

[Couldn’t fix the error? We are here for you]

 

Conclusion

In short, today we saw how our Support Techs resolve the PHPMyAdmin import database timeout error.

PREVENT YOUR SERVER FROM CRASHING!

Never again lose customers to poor server speed! Let us help you.

Our server experts will monitor & maintain your server 24/7 so that it remains lightning fast and secure.

GET STARTED

var google_conversion_label = "owonCMyG5nEQ0aD71QM";

0 Comments

Submit a Comment

Your email address will not be published. Required fields are marked *

Privacy Preference Center

Necessary

Necessary cookies help make a website usable by enabling basic functions like page navigation and access to secure areas of the website. The website cannot function properly without these cookies.

PHPSESSID - Preserves user session state across page requests.

gdpr[consent_types] - Used to store user consents.

gdpr[allowed_cookies] - Used to store user allowed cookies.

PHPSESSID, gdpr[consent_types], gdpr[allowed_cookies]
PHPSESSID
WHMCSpKDlPzh2chML

Statistics

Statistic cookies help website owners to understand how visitors interact with websites by collecting and reporting information anonymously.

_ga - Preserves user session state across page requests.

_gat - Used by Google Analytics to throttle request rate

_gid - Registers a unique ID that is used to generate statistical data on how you use the website.

smartlookCookie - Used to collect user device and location information of the site visitors to improve the websites User Experience.

_ga, _gat, _gid
_ga, _gat, _gid
smartlookCookie

Marketing

Marketing cookies are used to track visitors across websites. The intention is to display ads that are relevant and engaging for the individual user and thereby more valuable for publishers and third party advertisers.

IDE - Used by Google DoubleClick to register and report the website user's actions after viewing or clicking one of the advertiser's ads with the purpose of measuring the efficacy of an ad and to present targeted ads to the user.

test_cookie - Used to check if the user's browser supports cookies.

1P_JAR - Google cookie. These cookies are used to collect website statistics and track conversion rates.

NID - Registers a unique ID that identifies a returning user's device. The ID is used for serving ads that are most relevant to the user.

DV - Google ad personalisation

IDE, test_cookie, 1P_JAR, NID, DV, NID
IDE, test_cookie
1P_JAR, NID, DV
NID
hblid

Security

These are essential site cookies, used by the google reCAPTCHA. These cookies use an unique identifier to verify if a visitor is human or a bot.

SID, APISID, HSID, NID, PREF
SID, APISID, HSID, NID, PREF