I am using Command line to backup and restore MYSQL Database.
Let use I m having a Database Data1 having Views and Procedures in it.
When in Cmd line
, I use mysqldump
i.e
..>bin> mysqldump -u root -proot Data1 > Datafile.mysql
When I use above Cmd, It creates a Backup file on bin Folder of Mysql with Dtafile.mysql
Name.
but the thing is it creates Back Up of Only Tables, Not Procedures.
And when I m restoring it in a Blank Database "Data2"
..bin> mysql - u root -proot Data2 < Dataafile.mysql
What it does is, It creates all the Tables and Convert Views into Tables and No Procedures has been restored.
Means I am not able to Restore my full database backup with All tables, views and Procedures.
Can any of you guys help it.. I would be extremely Thankfull.