FraFu: sqldump einspielen

Beitrag lesen

Hallo!

[root@localhost bin]# ./mysqldump /home/iril/sqldump.sql
[..]
mysqldump: Got error: 1102: Incorrect database name '/home/iril/sqldump.sql' when selecting the database

mysqldump ist da um einen Dump zu erstellen, nicht um ihn einzuspielen. Ein man mysqldump verrät dir auch wie man ein Dump wieder einspielt.

The most common use of mysqldump is probably for making a backup of an entire database:

shell> mysqldump --opt db_name > backup-file.sql

You can read the dump file back into the server like this:

shell> mysql db_name < backup-file.sql

mfg
  frafu