Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 4531734
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 21, 20262026-05-21T13:56:27+00:00 2026-05-21T13:56:27+00:00

I am using MySQL 5.5.1.1 downloaded and installed from : http://dev.mysql.com/downloads/ I want to

  • 0

I am using MySQL 5.5.1.1 downloaded and installed from : http://dev.mysql.com/downloads/

I want to import .frm and .opt database files from my local machine to my mysql database.

I created a new Databbase connection to help me import the files from my machine. But I am unable to import .frm files as I keep getting error message: Format not supported.

Can someone please help me on how I could import files to MySQL client??

Thank you,
J

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-21T13:56:28+00:00Added an answer on May 21, 2026 at 1:56 pm

    As far importing any MySQL data, three(3) things need to considered.

    MyISAM

    Importing a MyISAM table is a simple as moving three files with the extensions .frm, .MYD, and .MYI files for the given table into a MySQL folder. For example, if the table name is mydata, then the three(3) files

    • mydata.frm
    • mydata.MYD
    • mydata.MYI

    The following could be the nightmare of nightmares. Importing InnoDB depends entirely on many factors that fall into one of two categories:

    InnoDB (innodb_file_per_table disabled [default])

    All InnoDB data and index pages are located in /var/lib/mysql/ibdata1. This file must be moved from your source machine (Server-S) to the target machine (Server-T) and placed in the same absolute path. In fact, here is the shocker: Server-S and Server-T must be the same. In other words, you cannot import and export InnoDB .ibd files to other machines. They can only be imported and exported on the same machine the .ibd was created on.

    You would also have to move /var/ib/mysql/ib_logfile0 and /var/ib/mysql/ib_logfile1 from Server-S and place them in the same absolute path on Server-T.

    You also must make sure that every InnoDB variable set in /etc/my.cnf from Server-S must be set in /etc/my.cnf on Server-T.

    InnoDB (innodb_file_per_table enabled)

    For every InnoDB table, there will be two files. For example, if the InnoDB table in the mydata database is called mytable, you will have /var/lib/mysql/mydata/mytable.frm and /var/lib/mysql/mydata/mytable.ibd. The .ibd file contains data and index pages for the table. To import the individual table you must

    1. Place the mytable.frm in /var/lib/mysql/mydata folder on Server-T
    2. Place the mytable.ibd in /var/lib/mysql/mydata folder on Server-T
    3. Run ALTER TABLE mydata.mytable IMPORT TABLESPACE;

    Make sure you have the /var/lib/mysql/ibdata1 in the same place it was imported from.

    Moral of the story

    Please do not use IMPORT TABLESPACE techniques across different servers. Just do a mysqldump of everything and import the mysqldump. Logical dumps are always the safest way to go !!!

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Using MySQL, How do I import a user defined database function from one db
I have installed http://www.mysql.com/downloads/connector/net/ So I am able to create a mysql connection. I
There are different mysql install packages for differential platforms. http://www.mysql.com/downloads/mysql/#downloads I'm using CentOS, which
i am using mysql as my database server. I want to have a backup
Yesterday I was working using MySQL installed on my computer. I downloaded xampp, so
I have downloaded mysql-connector-c-6.0.2. I build it using below commands: cmake -G Unix Makefiles
Im using MySQL with PDO PHP scripts to maintain a user database and a
I'm trying to compile Q4M ( http://q4m.31tools.com ) for MySql 5.1.44 since there is
When I try to connect to a MySQL Database from my .NET application i
So I want to create a JDBC connection to MySQL server that is installed

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.