Over the past 2 years I've been doing some reporting for a local business off a MySql server. Recently, the database was moved off site and I'm now given access to a backup copy. The db has more than 800 tables and when I extract the archive I find more than 800 pairs of sql & txt files representing the tables. The idea is that I will restore these tables to their existing local instance of MySQL and then run monthly and quarterly reports off of it. I found the line of code below that is described as being used to "Restore a MySQL Database".
mysql -u sadmin -p pass21 Customers < custback.sql
I have hundreds of sql files. Should I create a script that contains a line for each sql file representing a table, or is there a way to restore the entire database with one command. I looked for a master sql file, but nothing jumped out at me when I was looking at all of the files.
Thanks,
Greg
mysql -u sadmin -p pass21 Customers < custback.sql
I have hundreds of sql files. Should I create a script that contains a line for each sql file representing a table, or is there a way to restore the entire database with one command. I looked for a master sql file, but nothing jumped out at me when I was looking at all of the files.
Thanks,
Greg