Dump MYSQL database to file using mysqldump


Run this command on replacing the USERNAME and DATABASENAME with your respective mysql username and database name, this will prompt you for your mysql users password and subsequently produce a .sql file at your current location

Code: