How to Backup and Restore a MySQL Database

Posted on

backup mysql database: mysqldump -v -h localhost -u username -p db_name > backup.sql restore mysql database: mysql -v –show-warnings -h localhost -u username -p db_name < backup.sql ​