Skip to content
WJunction - Webmaster Forum

How to import a large database

Status
Not open for further replies.
Hi,
how to import a large database in mysql?
I have tried bigdump but I'm getting an internal error. Have tried many other method even then no result!
Help please
 

17 comments

Contact your host about Cpanel, add the backup file after you install mysql dumper to /work/backup/

It will detect it as "other scripts backup", choose it and click restore.

Alternatively use bigdump, search on it on Google to find it, it is simple php file, add to it your server SQL info and your backup file name then run it.
 
Personally I use SQLdumper, it can handle large databases with no problem.
Info and download:
Code:
http://www.mysqldumper.net/


Pikeypete
 
Always after importing your database check it with phpmyadmin for errors and fix anything by repair command.

I see it sorted out now.
 
if you have ssh access you can do it yourself with some simple commands.
but if you are hosted with someone, just ask your host to do it.
they should be able to do it, if not you have a crappy host.
 
If you have ssh access,then it's so easy, go and download putty enter Your details..

You will need the database username, password and database name, and putty
After you ssh into OLD server, type "mysqldump -u USER_NAME -p DB_NAME | gzip > FILE.sql.gz"
Enter the database password when it asks. Then, usinf FTP or sFTP, copy the FILE.sql.gz file from the OLD server to the NEW server. (Presumably by copying it from OLD server to your PC and then to NEW server.)
After you ssh into NEW server, type "gunzip < FILE.sql.gz | mysql -u USER_NAME -p DB_NAME"
Enter the database password when it asks. When it is done, your database will be copied to the new server.

Restoring . ssh to new host (make sure the database actually exists!)

mysql database -uusername -p < database.sql
or simply mysql database -uusername -p
enter password
source database.sql

PM me if you need more help.
 
If you have ssh access,then it's so easy, go and download putty enter Your details..

You will need the database username, password and database name, and putty
After you ssh into OLD server, type "mysqldump -u USER_NAME -p DB_NAME | gzip > FILE.sql.gz"
Enter the database password when it asks. Then, usinf FTP or sFTP, copy the FILE.sql.gz file from the OLD server to the NEW server. (Presumably by copying it from OLD server to your PC and then to NEW server.)
After you ssh into NEW server, type "gunzip < FILE.sql.gz | mysql -u USER_NAME -p DB_NAME"
Enter the database password when it asks. When it is done, your database will be copied to the new server.

Restoring . ssh to new host (make sure the database actually exists!)

mysql database -uusername -p < database.sql
or simply mysql database -uusername -p
enter password
source database.sql

PM me if you need more help.


i simply do ->
mysql -D database_name < file.sql

lol easier.
 
Status
Not open for further replies.

About the author

D
Banned · Joined
494
Messages
5
Reactions
18
Points

Advertise on WJunction

Reach 1000's of webmasters, hosts & affiliates. Banner & sponsored-thread slots available.

Contact us
Back
Top Bottom