LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
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!

Notices

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

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


Hi,

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.

Code:
mysqldump -u sql_admin -pxyz --all- database > june4mysql_backup.sql
Thanks.
 
Old 06-04-2012, 07:59 PM   #2
kasl33
Member
 
Registered: Oct 2004
Location: Bremerton, WA
Distribution: Arch, Debian, Ubuntu, Ubuntu-Server, CentOS, OSX Lion
Posts: 352

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


Reply


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 07:34 PM.

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