How will. SQL file data is imported into the MySQL database

Source: Internet
Author: User

First, the debugging environment with CMD to import the data in the. sql file:

Winr key to open cmd input:

Mysql-u root-p
After entering MySQL
Mysql>use DR;
Mysql> Source C:/dr.sql

Note that the DR above is your pre-created folder, created in the MySQL data directory, Dr.sql is the content of the database you downloaded, note that Dr.sql is to be placed in the outermost directory of the disk, otherwise the data cannot be imported.

Second, use the MySQL workbence debugging environment to import data:

Open the MySQL workbence software, select Data import/restore, select Import from Self-contain file, and select the storage path of the Dr.sql files to import the data and the default Target Schema database name Dr, finally click on the start import.

Of course the file format of the CMD Import database and the MySQL workbence format are different, but both have frm files.

How will. SQL file data is imported into the MySQL database

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.