?
Solved

Move IBDATA

Posted on 2011-03-25
3
Medium Priority
?
794 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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

10 Questions to Ask when Buying Backup Software

Choosing the right backup solution for your organization can be a daunting task. To make the selection process easier, ask solution providers these 10 key questions.

Question has a verified solution.

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

Creating and Managing Databases with phpMyAdmin in cPanel.
In this blog post, we’ll look at how ClickHouse performs in a general analytical workload using the star schema benchmark test.
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…
In this video, Percona Solutions Engineer Barrett Chambers discusses some of the basic syntax differences between MySQL and MongoDB. To learn more check out our webinar on MongoDB administration for MySQL DBA: https://www.percona.com/resources/we…
Suggested Courses

752 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