简体   繁体   中英

Timeout error occurs while import file sql into phpmyadmin on cpanel server

how to import sql into phpmyadmin on cpanel server.i tried to import, but it uploading long time then displays timeout error.

i uploaded my magento site into cpanel but while uploading mysql timeout occurs.

please help me how to handle this???

Try using Sequel Pro , import should be successful. If still it fails clear the log and core_url_rewrite tables, so the database becomes lighter and reimport. Make sure run catalog url rewrite reindex after the import is successful to regenerate urls.

PHPMyAdmin does not rely on the timeout or memory limit set in cPanel and takes its values from the server default timeout specified in WHM. So if you need it increased, it can be increased via WHM >> Tweak Settings >> cPanel PHP max execution time (its default is 90 sec and you need root access to modify it.)

As the database size seems large as it is of a Magento website, I suggest you to try doing the 1st method (source using shell)

  1. Do you have shell access. If yes, log in to the user account as the cPanel user.Issue the following command

    mysql -u username -p

Enter the password when prompted and then enter the command use database_name;

replace database_name with the actual database name.

Now import the database by issuing the command

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

where /your/path/to/backup.sql is the actual path to backup file.

  1. If this is not available, contact your hosting provider with the backup file and they should be able to source it for you.

  2. If you need the import to be done via cPanel provided PHPMyAdmin itself, then you need to increase the timeout specified in the beginning.

  3. Import the backup as chunks but it is more complex.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM