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 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.
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.
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. This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics
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...
|
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...
|
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...
|
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...
|
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...
|
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...
|
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...
|
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...
|
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...
|
by: Kemmylinns12 |
last post by:
Blockchain technology has emerged as a transformative force in the business world, offering unprecedented opportunities for innovation and...
|
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...
|
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.
...
|
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...
|
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...
|
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...
|
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...
|
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....
|
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...
| |