| PHP, MySQL General PHP questions. Or go to our PHPsuexec Forum >> |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread |
|
|
#1 (permalink) |
|
Registered User
Fresh Surpasser
Joined in Feb 2008
4 posts
Gave thanks: 0
Thanked 0 times
|
cannot import mysql database
I am trying to upload a mysql database to my site. I am getting this error:
Fatal error: Maximum execution time of 300 seconds exceeded in /usr/local/cpanel/base/3rdparty/phpMyAdmin/libraries/string_mb.lib.php on line 47 Any ideas what is wrong? |
|
|
|
|
|
#2 (permalink) |
|
after g, before i
Resident.
Joined in Jul 2004
Lives in N,BC,CA
8,087 posts
Gave thanks: 48
Thanked 131 times
|
You're probably uploading a rather large SQL dump. You can either use php.ini to increase the timeout limit (may not work... CPanel uses a different PHP config if I recall) or upload the file to your server and use SSH to import (ideal) or upload the file and have support import the file or use a script to break up the imports and do it in chunks.
|
|
|
|
| This user thanks H for this great post! | Dan (March 3rd, 2008) |
|
|
#3 (permalink) |
|
Staff of Surpass
Super #1
Joined in Apr 2007
2,744 posts
Gave thanks: 152
Thanked 184 times
|
Probably going to be your best bet in this situation. Just make sure you let us know the database name so we can import it through SSH
![]()
__________________
D4nz Net - Surpass Help Desk - NES Forever Use the thanks button. It works! AIM: dansorl |
|
|
|
|
|
#5 (permalink) |
|
after g, before i
Resident.
Joined in Jul 2004
Lives in N,BC,CA
8,087 posts
Gave thanks: 48
Thanked 131 times
|
Hmm. That *shouldn't* be an issue. I think support might be the route to go though... even if just to find out why a 2.2MB file is exceeding the execution time.
|
|
|
|
|
|
#6 (permalink) |
|
Registered User
Fresh Surpasser
Joined in Feb 2008
4 posts
Gave thanks: 0
Thanked 0 times
|
Support did restore my database so it is working now. The offered the suggestion that such trouble is "usually due to a slow connection on upload".
I tried uploading the file compressed (36k) and uncompressed (2.2MB) but it timed out in both cases. Methinks there is possibly something else going on but at least it is working now. Thanks for your replies. ![]() |
|
|
|
|
|
#7 (permalink) |
|
php, wha?!
Comfy Contributor
Joined in Feb 2008
163 posts
Gave thanks: 4
Thanked 5 times
|
Take the mysql file and do it bit by bit? Open it up in your beloved text editor and take and do it one table at a time, if you want to do it here and now. It takes up a lot of time, but it works.
|
|
|
|
|
|
#8 (permalink) | |
|
Staff of Surpass
Super #1
Joined in Apr 2007
2,744 posts
Gave thanks: 152
Thanked 184 times
|
Quote:
But like you found out, we're always here to help you if all else fails ![]()
__________________
D4nz Net - Surpass Help Desk - NES Forever Use the thanks button. It works! AIM: dansorl |
|
|
|
|