472,353 Members | 1,892 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 472,353 software developers and data experts.

InnoDB backup and restore

Hi all,

I've just converted the tables in a big database (approx 27 million
records) from MyISAM to InnoDB. When I was using MyISAM I backed up
the database by stopping MySQL and then copying the MYI, MYD, frm
files in the database directory, and restored the database in the same
way.

Is there a similar way to backup and restore InnoDB tables, or do I
have to use the InnoDB Hot Backup tool?

Reuben
re****@presence-systems.com
Jul 20 '05 #1
3 11185
Reuben Pearse wrote:
Hi all,

I've just converted the tables in a big database (approx 27 million
records) from MyISAM to InnoDB. When I was using MyISAM I backed up
the database by stopping MySQL and then copying the MYI, MYD, frm
files in the database directory, and restored the database in the same
way.
FWIW, I recommend using mysqldump even for MyISAM tables, instead of
relying on filesystem copy of the live database files. I've used other
RDBMS products that use a slightly different internal file format from
platform to platform, or from version to version.

If you back up data in its "live" binary format, and then months or
years later you need to restore, but at that time the MySQL server has
been moved to a different host, you risk being unable to restore.
Is there a similar way to backup and restore InnoDB tables, or do I
have to use the InnoDB Hot Backup tool?


InnoDB Hot Backup sounds nice, but it costs lots of money and it's
probably overkill for most users.

For reasons above, I'd recommend using `mysqldump --single-transaction'
for backing up InnoDB tables.

Regards,
Bill K.
Jul 20 '05 #2
Thanks for that Bill.

The main problem I've got now is that it takes forever to restore a 27
million record database from a backup file created with mysqldump.

Is there a quicker way to restore InnoDB databases?

Reuben
re****@presence-systems.com
Bill Karwin <bi**@karwin.com> wrote in message news:<cn********@enews2.newsguy.com>...
Reuben Pearse wrote:
Hi all,

I've just converted the tables in a big database (approx 27 million
records) from MyISAM to InnoDB. When I was using MyISAM I backed up
the database by stopping MySQL and then copying the MYI, MYD, frm
files in the database directory, and restored the database in the same
way.


FWIW, I recommend using mysqldump even for MyISAM tables, instead of
relying on filesystem copy of the live database files. I've used other
RDBMS products that use a slightly different internal file format from
platform to platform, or from version to version.

If you back up data in its "live" binary format, and then months or
years later you need to restore, but at that time the MySQL server has
been moved to a different host, you risk being unable to restore.
Is there a similar way to backup and restore InnoDB tables, or do I
have to use the InnoDB Hot Backup tool?


InnoDB Hot Backup sounds nice, but it costs lots of money and it's
probably overkill for most users.

For reasons above, I'd recommend using `mysqldump --single-transaction'
for backing up InnoDB tables.

Regards,
Bill K.

Jul 20 '05 #3
Reuben Pearse wrote:
The main problem I've got now is that it takes forever to restore a 27
million record database from a backup file created with mysqldump.
Is there a quicker way to restore InnoDB databases?


This web page is probably worthwhile reading:
http://dev.mysql.com/doc/mysql/en/InnoDB_tuning.html

There are several tips for speeding up bulk data loads to InnoDB tables.

Regards,
Bill K.
Jul 20 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: Martin Gill | last post by:
I am a novice user of MySQL so please excuse my ignorance. I recently installed MySQL and have a third party tool using it to update data in a...
3
by: Vanchau Nguyen | last post by:
Hi all, Hoping someone can help us with this strange Innodb problem. At about 5:15 AM 2/2/04 (this morning), our slave server stopped accepting...
0
by: Rajesh Kapur | last post by:
We use InnoDB tables and foreign key constraints extensively. The mysqldump backs up the database tables in alphabetical order with foreign key...
5
by: Eddie | last post by:
I have a MySQL-server running Innodb. We have installed ~ 2GB of memory in the server. In spite of this MySQL keeps crashing due to out-of-memory...
1
by: Rajesh Kapur | last post by:
Hello, We are on MySQL 4.0.21 on linux. We use InnoDB tables and foreign key constraints extensively. The mysqldump backs up the database tables...
4
by: Hardy | last post by:
hi gurus, now I have to backup and restore a 8 T size db2 database. from two s85 to two 670. the partitions,tablespaces of the db should be...
4
by: Good Man | last post by:
Hi there I have a database with about 20 or so tables, maybe a few thousand rows in each. I am starting to do more complex things with my...
1
by: fuzzybr80 | last post by:
Hi, I am using MySQL version 5.0 on Linux Fedora Core 4. I recently got this error message: 060609 11:06:29 InnoDB: ERROR: the age of the...
1
by: fjm | last post by:
Hi all, I have a question regarding php and mysql. What I have is a php backup script that dumps the data in the form of INSERT INTO ... I am...
1
by: Kemmylinns12 | last post by:
Blockchain technology has emerged as a transformative force in the business world, offering unprecedented opportunities for innovation and...
0
by: Naresh1 | last post by:
What is WebLogic Admin Training? WebLogic Admin Training is a specialized program designed to equip individuals with the skills and knowledge...
0
by: Matthew3360 | last post by:
Hi there. I have been struggling to find out how to use a variable as my location in my header redirect function. Here is my code. ...
2
by: Matthew3360 | last post by:
Hi, I have a python app that i want to be able to get variables from a php page on my webserver. My python app is on my computer. How would I make it...
0
by: Arjunsri | last post by:
I have a Redshift database that I need to use as an import data source. I have configured the DSN connection using the server, port, database, and...
0
hi
by: WisdomUfot | last post by:
It's an interesting question you've got about how Gmail hides the HTTP referrer when a link in an email is clicked. While I don't have the specific...
0
Oralloy
by: Oralloy | last post by:
Hello Folks, I am trying to hook up a CPU which I designed using SystemC to I/O pins on an FPGA. My problem (spelled failure) is with the...
0
by: Carina712 | last post by:
Setting background colors for Excel documents can help to improve the visual appeal of the document and make it easier to read and understand....
0
BLUEPANDA
by: BLUEPANDA | last post by:
At BluePanda Dev, we're passionate about building high-quality software and sharing our knowledge with the community. That's why we've created a SaaS...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.