How to convert files with the suffix frm, MYD, and myi into MySQL?

Source: Internet
Author: User

After a long time, I finally got it out. Thank you very much Baidu! So now I will sum up: Destroy hahaha

Steps:

Step 1:

To create a database in MySQL, you can use the doscommand to create a database.

Create Database dbname;

Step 2: openMy. iniFile, find the file namedDatadir, Followed by a path. Mine is:

C:/Documents and Settings/all users. Windows/Application Data/MySQL Server 5.1/data/

You can see the dbname folder under this path, copy the heap. frm,. MYD, and myi, and then at the command prompt (UseCD) Go to the bin directory under the MySQL installation directory,

Note: dbname is the name of the database I created earlier.

InputMysqldump-uroot-P dbname> dbname. SQL, Press Enter. You will be asked to enter the Database Password. after entering the password, press Enter.

Then, you can find the converted dbname. SQL in the bin directory under the MySQL installation directory.

Step 3: run the doscommand to go to the bin directory under the MySQL installation directory.

Then: EnterMysqldump-uroot-P dbname> dbname. SQLIn this case, press enter and you will be able to see it in the database... haha

 

 

 

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.