HPE GreenLake Administration
Operating System - Linux
1829115
Members
13443
Online
109986
Solutions
Forums
Categories
Company
Local Language
back
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Discussions
Forums
Discussions
back
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Blogs
Information
Community
Resources
Community Language
Language
Forums
Blogs
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-14-2006 07:24 PM
06-14-2006 07:24 PM
mysql
Hi all,
Will anybody guide me in backing up and restoring the databases in mysql of linux.
Plz give me the syntax and from where to issue the command and also inform me whether databases should be closed or opened.
Thnx
XYZ
Will anybody guide me in backing up and restoring the databases in mysql of linux.
Plz give me the syntax and from where to issue the command and also inform me whether databases should be closed or opened.
Thnx
XYZ
3 REPLIES 3
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-14-2006 10:02 PM
06-14-2006 10:02 PM
Re: mysql
Depending on the type of database in use, depends on how valid the resultunt 'dump' of the database is.
Doing a flat-file backup whist the database is live is *OUT*.
You can do a 'mysqldump' to dump the contents of the database, and back that up however.
This is the command I use:
mysqldump -A -c -F -f -q --single-transaction | bzip2 -9 > /path/to/backup.dump.bz2
Options are as follows:
-A : All databases
-a : All create options
-c : Use complete Insert statements
-F : flush logs first
-f : Continue even if there's an error
-q : Don't buffer output
--single-transaction : Go transactions!
If you aren't using a transaction capable database type (InnoDB or some forms of BDB), it'll be silently ignored.
Complete Insert Statements makes no assumptions. It also means it's easier to do recoveries if there are database format changes.. usually..
Depending on the table type depends on the locking this will do. This basically does big SELECT statements to get the data out.
If you want locks, use either '--add-locks' or just '--opt'.
Doing a flat-file backup whist the database is live is *OUT*.
You can do a 'mysqldump' to dump the contents of the database, and back that up however.
This is the command I use:
mysqldump -A -c -F -f -q --single-transaction | bzip2 -9 > /path/to/backup.dump.bz2
Options are as follows:
-A : All databases
-a : All create options
-c : Use complete Insert statements
-F : flush logs first
-f : Continue even if there's an error
-q : Don't buffer output
--single-transaction : Go transactions!
If you aren't using a transaction capable database type (InnoDB or some forms of BDB), it'll be silently ignored.
Complete Insert Statements makes no assumptions. It also means it's easier to do recoveries if there are database format changes.. usually..
Depending on the table type depends on the locking this will do. This basically does big SELECT statements to get the data out.
If you want locks, use either '--add-locks' or just '--opt'.
One long-haired git at your service...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-14-2006 11:51 PM
06-14-2006 11:51 PM
Re: mysql
Shalom,
In the same directory as the mysql binaries are programs for performing hot and cold backups of the database.
mysql is remarkably durable. I've performed backups with simple OS copies of the db files and had it work on other systems.
SEP
In the same directory as the mysql binaries are programs for performing hot and cold backups of the database.
mysql is remarkably durable. I've performed backups with simple OS copies of the db files and had it work on other systems.
SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-15-2006 12:07 AM
06-15-2006 12:07 AM
Re: mysql
Nice exlanation could be found at:
http://gentoo-wiki.com/MySQL/Backup
and
http://dev.mysql.com/doc/refman/5.0/en/backup.html
Regards
http://gentoo-wiki.com/MySQL/Backup
and
http://dev.mysql.com/doc/refman/5.0/en/backup.html
Regards
The opinions expressed above are the personal opinions of the authors, not of Hewlett Packard Enterprise. By using this site, you accept the Terms of Use and Rules of Participation.
Company
Events and news
Customer resources
© Copyright 2025 Hewlett Packard Enterprise Development LP