Run this to create an empty database: mysql -u username -p -e ‘CREATE DATABASE database’ Backup the database with the command: mysql -u username -p database > path/to/backup.sql Restore the database with the command: mysql -u username -p database < …

Mysql Read more »