mysqldump outputs the table structure and data in series of SQL commands stored in a text file. | |
The simplified syntax is | |
| |
To back up a 'myDatabase' database: | |
| |
We could also have chosen to output just one table from the database, for example the employee table: | |
| |
We could even dump all the databases out (providing we have the permissions). | |
|