How to Dump Content using Mysqldump

Contributor Icon Contributed by vaiism  
Tag Icon Tagged: MySQL  

This command dumps the content of a database in MySQL to a text file. This will prompt for password of account used with ‘-p’

Here is the formatting of the command:

mysqldump -u [username] -p [database_name] > /path/to/file.sql

Example:

mysqldump -u fred -p FredsAddresses > /tmp/addresses.sql

 

2 Comments -


No comments yet.

RSS feed for comments on this post. TrackBack URL

Leave a comment -