Click here to Skip to main content
16,016,345 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
How to restore Mysql database using sql command or using batch file
Posted

1 solution

Drop ur database

mysqladmin -u USERNAME -p drop DATABASE_NAME


Recreate the database

mysqladmin -u USERNAME -p create DATABASE_NAME


Import Backup

mysql -u USERNAME -p DATABASE_NAME <filename.mysql></filename.mysql>


I think this will work for you....Cheers !!!!! Happy Christmas ...
 
Share this answer
 
v2
Comments
RDBurmon 21-Dec-10 5:30am    
But jewel where he address the path for back file ?

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900