How to backup a mySql database in Ubuntu?
|
|
|
|
|
Question: How to backup a mySql database in Ubuntu using the mysqldump utility? Answer:Â - Open a new Terminal Window.
- Type in the following command:
mysqldump -h localhost -u root -pPASSWORD database > backup.sql - This will backup the database to the file backup.sql
- -h = Hostname
-u = Username -p = Password, no space between the p and the password allowed NOTE: Has been tested on Ubuntu 9.04 and mySql 5.0.75
|