/ Published in: Bash
Used to dump the entire contents of a database. Customize -u [username] -p[password] name of the table and the name of the file to dump to. Likewise with [host] (probably localhost if on same server), [tablename] and [dumpfilename.sql].
Expand |
Embed | Plain Text
mysqldump -h [host] -u [username] -p[password] -c --add-drop-table --add-locks --all --quick --lock-tables [tablename] > [dumpfilename.sql] # example mysqldump -u admin -p [dbase] > [filename].sql
You need to login to post a comment.
