codlib — 2012-01-25T03:34:52-05:00 — #1
I have a database backup with 400+ sql files. foreach table there is a separate sql file. Is it possible to import all this files together to a database? If so could you tell me how to do this?
Also the backup is a gzipped tar file. Is there a way to restore from a compressed file.?
serverstorm — 2012-01-25T10:13:55-05:00 — #2
Do you still have access to the database holding these records? If so you can download MySQL Workbench and export the database as a single file, which you can then either import or execute as a script?
badcoder — 2012-01-25T18:06:44-05:00 — #3
Try this one:
1. Go to Google, and type import mysql by ssh.
2. Then use some tool rename file to sql1 to sql400.sql
3. Write a loop on PHP or Perl to run that command import or just simple:
open notepad, type the command:
then copy and paste it on your SSH , enter, they will run line by line for you automatic.