Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

mysqldump wont dump my data

here is the command I'm using:

mysqldump.exe -u root -d capstone -verbse --skip-quote-names > capstone.sql

and the output I get

mysqldump: Warning: Can't set SQL_QUOTE_SHOW_CREATE option ()
-- Skipping dump data for table 'users', --no-data was used

any ideas? if I dump to XML it works but the place I'm importing it to doesn't handle XML and my data ruins the CSV output somehow too.

like image 345
Matth Avatar asked Nov 03 '22 03:11

Matth


1 Answers

the -d option is alias of --no-data, see https://dev.mysql.com/doc/refman/5.7/en/mysqldump.html#option_mysqldump_no-data

perhaps you intended to state "use database capstone" but in that case it wouldn't be -d capstone, the database name doesn't need any switch/option, just put it in there

shell> mysqldump [options] db_name [tbl_name ...]
shell> mysqldump [options] --databases db_name ...
shell> mysqldump [options] --all-databases

https://dev.mysql.com/doc/refman/5.7/en/mysqldump.html#mysqldump-syntax

like image 117
arhak Avatar answered Nov 07 '22 20:11

arhak