I want to dump my database along the table schema and the table data also using the unix command line .
I used .
mysqldump -d -u root -p frontend > frontend.sql
But above command is dumping only schema not the data from the database .
Please help me out how can i dump the database along the data also.
mysqldump offers plenty of options to build a proper backup from your database:
Here you can find more detail about how to mysqldump:
http://dev.mysql.com/doc/refman/5.1/en/mysqldump.html
You just need to remove
-d
from yourmysqldump
commandbackup: #
restore:#
[ref:] http://www.thegeekstuff.com/2008/09/backup-and-restore-mysql-database-using-mysqldump/
To restore database from .sql dumpfile
Use mysqldump to create backup from database.
This will do,
If your requirement is to dump data alone then go for this,
To export to file (data only)
I think the command you would need will be mysqldump. Try the following: