Backup isi database MySQL

From OnnoWiki
Revision as of 07:40, 24 February 2011 by Onnowpurbo (talk | contribs)
Jump to navigation Jump to search

Dump isi database MySQL

/usr/bin/mysqldump -u usernamemysql -ppasswordmysql namadb -c

jika kita menginginkan agar file yang di hasilkan langsung di gz, kita dapat menggunakan perintah

/usr/bin/mysqldump -u usernamemysql -ppasswordmysql namadb -c | /bin/gzip -9 > isidatabse.sql.gz

Database akan tersimpan di file

isidatabase.sql.gz


Referensi

Pranala Menarik