how to backup db mysql from cli 1

how to backup db mysql from cli

mysqldump database_name > backup_name.sql

Here is what the above code is Doing:
1. The mysqldump command is used to create a backup of the database.
2. The database_name is the name of the database you want to backup.
3. The > operator is used to write the output of the command to a file.
4. The backup_name.sql is the file to which the database backup will be written.

Similar Posts