Post Reply 
 
Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
How to backup database of mysql using bat
12-13-2011, 02:41 AM (This post was last modified: 12-19-2011 03:17 AM by rajasri.)
Post: #1
Smile How to backup database of mysql using bat
Today we are going to learn how to backup a database using commands from mysql
The easy way to do this is using a bat file.

open notepad and type
mysqldump --user=root --password=root --lock-all-tables --opt databasename > c:/backup.sql
save this file in your mysql installed bin folder as "restore.bat" now double click it you will find database backup in c:/backup.sql.

Any doubt ask us.

Happy Coding
Find all posts by this user
Add Thank You Quote this message in a reply
Post Reply 


Possibly Related Threads...
Thread: Author Replies Views: Last Post
  Hsqldb another database how to use it. mjm 0 196 01-03-2012 04:32 AM
Last Post: mjm
Tongue Finding/removing duplicate values from database using sql rajasri 0 61 12-19-2011 10:17 PM
Last Post: rajasri
  Display data from database in php rajasri 0 187 12-14-2011 04:22 PM
Last Post: rajasri
Sad how to export a csv using INTO syntax of mysql rajasri 0 95 12-13-2011 04:42 AM
Last Post: rajasri
Tongue Retrieve values between two numbers in mysql rajasri 0 196 12-13-2011 04:39 AM
Last Post: rajasri
Sad Create database and table from jsp page rajasri 0 266 12-13-2011 03:06 AM
Last Post: rajasri
Wink Exception:com.mysql.jdbc.MysqlDataTruncation: Data truncation: Data too long for colu rajasri 0 360 12-13-2011 02:09 AM
Last Post: rajasri

Forum Jump:


User(s) browsing this thread: 1 Guest(s)


WE will share important jobs and updates on facebook so like us to get updates