To backup a MySQL database, use mysqldump to export the database as a .sql file with root access, then import the backup by creating a new database with mysql, exiting, and using mysql to import the .sql file into the new database.
Original Description:
This document explains how to take a backup of mysql database, how to import and export it.
To backup a MySQL database, use mysqldump to export the database as a .sql file with root access, then import the backup by creating a new database with mysql, exiting, and using mysql to import the .sql file into the new database.
To backup a MySQL database, use mysqldump to export the database as a .sql file with root access, then import the backup by creating a new database with mysql, exiting, and using mysql to import the .sql file into the new database.