Backup a mysql database
Using mysqldump, backing up a MySQL database and restoring it, is really simple. All you need is the right credentials.
mysqldump -u [username] -p[password] [database_name] > [database_name].sql
Change [username] and [password] with a user (and his password) that has enough rights to read the database. Change [database_name] to the database you want to make a backup off.
Was this article helpful? Then please donate to keep The IT Community alive...
If you found this article helpful please share it, comment and help others by writing your own article.
Translate this page:
Articles found in the same category: