I have backup up an entire mysql database with
mysqldump --quick --password=mypassword
database_name >backup-file.sql
Now I need to recreate this with mysqlimport.
I have lloked at the manual and it is not clear to me
where one specifies the database and sql file
As far as I can read mysqlimport works one table at a time where the table is the name before the extention
(e.g. here backup-file). It is a mystery to me how
one specifies the database; Is there no automatic way to
recreate the entire database from the backup files
except with a hack(that is, use a program to parse
backup-files.sql, which consists of SQL statements
and excecute them?)
Thanks, svar
I tried
mysqlimport --host=localhost --password=mypassword
--delete backup-file.sql
mysqldump --quick --password=mypassword
database_name >backup-file.sql
Now I need to recreate this with mysqlimport.
I have lloked at the manual and it is not clear to me
where one specifies the database and sql file
As far as I can read mysqlimport works one table at a time where the table is the name before the extention
(e.g. here backup-file). It is a mystery to me how
one specifies the database; Is there no automatic way to
recreate the entire database from the backup files
except with a hack(that is, use a program to parse
backup-files.sql, which consists of SQL statements
and excecute them?)
Thanks, svar
I tried
mysqlimport --host=localhost --password=mypassword
--delete backup-file.sql