Solved

Move IBDATA

Posted on 2011-03-25
3
791 Views
Last Modified: 2012-06-21
I am trying to move the ibdata files to a new drive on my server (Red Hat), but am running into some issues. Here are the steps that I took:

1. Stop the MySQL Service
2. Edit the my.cnf file by adding the following lines:


innodb_log_group_home_dir=/db/idbdata
innodb_data_file_path=ibdata1:10M:autoextend
innodb_log_files_in_group=2
innodb_data_home_dir=/db/idbdata

3. Copy the ibdata1 file and the two ib_logfiles from /var/lib/mysql to /db/ibdata
4. Start the MySQL service backup

When I query any of the tables, specifically innodb tables I get the following error:

ERROR 1033 (HY000) on InnoDB configuration error
0
Comment
Question by:plecostomus
  • 2
3 Comments
 
LVL 5

Expert Comment

by:tsmgeek
ID: 35221600
look at the .err log file in /var/lib/mysql/ as that will give a more detailed error
0
 

Author Comment

by:plecostomus
ID: 35223682
The error message says the same thing. What is weird, is I changed the size of the inndob file the my.cnf file from 50M to the current size of the file on disk and it worked.
0
 
LVL 5

Accepted Solution

by:
tsmgeek earned 500 total points
ID: 35223699
Settings regarding the data files have to be the same when moving INNODB from server to server.
Very annoying it does not flag errors.
0

Featured Post

Use Case: Protecting a Hybrid Cloud Infrastructure

Microsoft Azure is rapidly becoming the norm in dynamic IT environments. This document describes the challenges that organizations face when protecting data in a hybrid cloud IT environment and presents a use case to demonstrate how Acronis Backup protects all data.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

I have been using r1soft Continuous Data Protection (http://www.r1soft.com/linux-cdp/) for many years now with the mySQL Addon and wanted to share a trick I have used several times. For those of us that don't have the luxury of using all transact…
Load balancing is the method of dividing the total amount of work performed by one computer between two or more computers. Its aim is to get more work done in the same amount of time, ensuring that all the users get served faster.
The Email Laundry PDF encryption service allows companies to send confidential encrypted  emails to anybody. The PDF document can also contain attachments that are embedded in the encrypted PDF. The password is randomly generated by The Email Laundr…

830 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question