Solved

Move IBDATA

Posted on 2011-03-25
3
788 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
Comment Utility
look at the .err log file in /var/lib/mysql/ as that will give a more detailed error
0
 

Author Comment

by:plecostomus
Comment Utility
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
Comment Utility
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

Free Trending Threat Insights Every Day

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

Join & Write a Comment

Fore-Foreword Today (2016) Maxmind has a new approach to the distribution of its data sets.  This article may be obsolete.  Instead of using the examples here, have a look at the MaxMind API (https://www.maxmind.com/en/geolite2-developer-package). …
Introduction In this installment of my SQL tidbits, I will be looking at parsing Extensible Markup Language (XML) directly passed as string parameters to MySQL 5.1.5 or higher. These would be instances where LOAD_FILE (http://dev.mysql.com/doc/refm…
It is a freely distributed piece of software for such tasks as photo retouching, image composition and image authoring. It works on many operating systems, in many languages.
Internet Business Fax to Email Made Easy - With eFax Corporate (http://www.enterprise.efax.com), you'll receive a dedicated online fax number, which is used the same way as a typical analog fax number. You'll receive secure faxes in your email, fr…

771 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

Need Help in Real-Time?

Connect with top rated Experts

12 Experts available now in Live!

Get 1:1 Help Now