LinuxQuestions.org
Help answer threads with 0 replies.
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, 10:54 AM   #1
sam_nyc
Member
 
Registered: Aug 2009
Posts: 73

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, 08:59 PM   #2
kasl33
Member
 
Registered: Oct 2004
Location: USA
Distribution: Ubuntu-Server, Mac OS X, Arch Linux
Posts: 356

Rep: Reputation: 48
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 06:52 PM
how to create backup MYSQL Script to backup my database for every 1hour RMLinux Linux - Newbie 3 11-20-2008 11:13 AM
backup mysql database nawuza Linux - Newbie 17 08-25-2008 03:40 PM
Backup software for MySql database blinton25 Linux - Software 5 06-01-2007 04:40 AM
How to import a mysql database from backup WindowBreaker Slackware 6 03-17-2006 12:08 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 08:26 PM.

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration