I am using mysql and trying to export database through below command
mysqldump -uroot -p -d database_name > file.sql
It ran successfully.
However it did not export the data, it only export the schema of database.
anyone know why is this happening?
Thanks in advance.
According to the mysqldump documentation:
Try removing the
-dfrom your command line.