MYSQL Dump from Command Line

Back up your database from the command line using mysqldump. This works in most Linux based terminals / SSH.


[uname] Your database username
[pass] The password for your database (note there is no space between -p and the password)
[dbname] The name of your database
[backupfile.sql] The filename for your database backup
[–opt] The mysqldump option