Reputation: 3255
mysqldump --host=localhost --user=root --password=sysadmin --no-data test > "C:\test1\ttt.dump";
This the command that i fire to create dump from mysql database , that's working fine and create dump with no data.
but I want some table with data , this command create dump with table that all are blank.
Upvotes: 0
Views: 656
Reputation: 6249
There is no possibility to do it with 1 command, but theres a way to get creative.
Now you have 2 options:
CREATE TABLE
with CREATE TABLE IF NOT EXISTS
or--force
option when importing the dump fileUpvotes: 0
Reputation: 1466
You can create dump of whole db using this command
mysqldump -uUserName -pPassword --add-drop-database --add-drop-table --hex-blob SchemaName > FileName.sql
Just enter proper UserName,Password SchemaName and filename.
Upvotes: 2