View the Most Wanted LQ Wiki articles.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!


  Search this Thread
Old 06-04-2012, 09:54 AM   #1
Registered: Aug 2009
Posts: 41

Rep: Reputation: 1
how to do mysql backup while the database is ON


I want to backup mysql database on the fly.
Is this the correct way to do this.... Since I don't know how many database out there on my server, I want to backup every thing on the server.

mysqldump -u sql_admin -pxyz --all- database > june4mysql_backup.sql
Old 06-04-2012, 07:59 PM   #2
Registered: Oct 2004
Location: USA
Distribution: Ubuntu-Server, Mac OS X, Arch Linux
Posts: 354

Rep: Reputation: 48
mysqldump -u sql_admin --all-databases --skip-lock-tables -p > june4mysql_backup.sql


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] How to backup a particular Database!! in MYSQL anishkumarv Linux - Newbie 7 06-27-2011 05:52 PM
how to create backup MYSQL Script to backup my database for every 1hour RMLinux Linux - Newbie 3 11-20-2008 10:13 AM
backup mysql database nawuza Linux - Newbie 17 08-25-2008 02:40 PM
Backup software for MySql database blinton25 Linux - Software 5 06-01-2007 03:40 AM
How to import a mysql database from backup WindowBreaker Slackware 6 03-16-2006 11:08 PM

All times are GMT -5. The time now is 05:14 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration