Mysql database recovery (* frm) file _ MySQL

Source: Internet
Author: User
When a mysql database recovery (* frm) file uses a virtual server, the server provider generally does not use Import and Export (such a file suffix is *. SQL) as we use a local database ). Most of the time, a folder is provided, including the database name folder, including *. frm, *. MYI, *. MYD, and a db. opt file. We will introduce them separately:
*. Frm ---- describes the table structure.
*. MYI ---- table index
*. Myd ---- saves the table data records
Db. opt ---- open it in a text editor and you can see that the encoding information is saved in it.

To import the above database into mysql:

  1. Install mysql database: the database I installed is MySQL Server 5.5. Select D:/program files/MySQL as the installation directory (note: do not include Chinese characters in the path)
  2. In C:/Documents and Settings/All Users/Application Data/, find the MySQL/MySQL Server 5.5 folder, which has a file: my. ini
  3. Find a datadir key in the my. ini file, for example, datadir = "C:/Documents Ents and Settings/All Users/Application Data/MySQL Server 5.5/data/"
  4. In the data folder found in 3, copy the files (including *. frm, *. MYI, *. MYD, db. opt) provided by the service provider for backup)
  5. Restart the mysql service to view the table structure and data on the management interface.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.