[Last Call] Learn how to a build a cloud-first strategyRegister Now

x
?
Solved

Move IBDATA

Posted on 2011-03-25
3
Medium Priority
?
802 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 2000 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

Vote for the Most Valuable Expert

It’s time to recognize experts that go above and beyond with helpful solutions and engagement on site. Choose from the top experts in the Hall of Fame or on the right rail of your favorite topic page. Look for the blue “Nominate” button on their profile to vote.

Question has a verified solution.

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

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.
This post contains step-by-step instructions for setting up alerting in Percona Monitoring and Management (PMM) using Grafana.
In this video, Percona Solution Engineer Dimitri Vanoverbeke discusses why you want to use at least three nodes in a database cluster. To discuss how Percona Consulting can help with your design and architecture needs for your database and infras…
In this video, Percona Solution Engineer Rick Golba discuss how (and why) you implement high availability in a database environment. To discuss how Percona Consulting can help with your design and architecture needs for your database and infrastr…
Suggested Courses
Course of the Month18 days, 2 hours left to enroll

831 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