Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

PHP Forum


You are currently viewing our PHP Forum as a guest. Please register to participate.
Login



Freelance Jobs

Reply
Old 06-20-2005, 11:33 AM MySQL Restore
SpottyDog's Avatar
Skilled Talker

Posts: 82
Trades: 0
Hey guys

im trying to restore a database through phpmyadmin that comes with cPanel. I have the database in a .sql file. When i try to upload it because its a big file (4.5mb) it times out over the 300 sec time limit. So, i tried copying and pasting it but when i ctrl-v it jus locks up my IE and doesnt respond.

Any ideas?

Cheers
SpottyDog is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 06-20-2005, 11:41 AM
millwalll's Avatar
Webmaster Talker

Posts: 674
Name: James
Location: KENT
Trades: 3
how about copy a pasting it a bit at a time
millwalll is offline
Reply With Quote
View Public Profile Visit millwalll's homepage!
 
Old 06-20-2005, 12:00 PM
SpottyDog's Avatar
Skilled Talker

Posts: 82
Trades: 0
yeah i have tried this but it would simply take hours.

i jus thought it there a way to easily convert SQL syntax and put it into a php file and run?
SpottyDog is offline
Reply With Quote
View Public Profile
 
Old 06-20-2005, 12:14 PM
Anacrusis's Avatar
Defies a Status

Posts: 2,099
Name: Adam
Location: Colchester CT
Trades: 0
Ask your host to do it, they can load the file for you from the command line without any trouble.
Anacrusis is offline
Reply With Quote
View Public Profile
 
Old 06-20-2005, 12:24 PM
SpottyDog's Avatar
Skilled Talker

Posts: 82
Trades: 0
ok i ahve access to the command line on the server since the server is partly mine. Do you know the command i should use
SpottyDog is offline
Reply With Quote
View Public Profile
 
Old 06-20-2005, 12:30 PM
Duport's Avatar
Ultra Talker

Posts: 323
Trades: 0
Command into the directory where the backup is, if it is zipped or tarred unzip/untar so you have a .sql file then use the following command (change to correct settings):

mysql -u dbusername -p databasename < backupname.sql


If you need to use with hostname use:

mysql -h servername -u dbusername -p databasename < backupname.sql
__________________

Please login or register to view this content. Registration is FREE
- Shared / Reseller / Cloud / VPS / Dedicated
Multiple Domain Hosting .... 24/7 Technical Support -
Please login or register to view this content. Registration is FREE
Duport is offline
Reply With Quote
View Public Profile Visit Duport's homepage!
 
Old 06-20-2005, 12:45 PM
SpottyDog's Avatar
Skilled Talker

Posts: 82
Trades: 0
thanks alot it worked a treat
SpottyDog is offline
Reply With Quote
View Public Profile
 
Reply     « Reply to MySQL Restore
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.17980 seconds with 12 queries