How can I make a perfect backup of mysql database using mysqldump?
When I am making a backup, my tables from specified database are only getting backed up. The procedures and functions are not.
Here’s the backup command I am using:
(Operating system is Windows Vista.)
mysqldump -u username -p db1 > backup.sql
It depends a bit on your version. Before 5.0.13 this is not possible with mysqldump.
From the mysqldump man page (v 5.1.30)