How to import External SQL scripts from mysql

Source: Internet
Author: User
Tags mysql command line

There are two import methods: one is to use graphical tools, such as SQLYog and Navicat, and the other is to use the MySql command line interface. The following sections describe:

I. command line interface

1. Start mysql:

2. log on to mysql:

3. Create a database to store the imported SQL:

4. Find the SQL path and use the source command to import it to the created database:

Ii. Use Navicat to import an SQL script:

1. Establish a connection with MySql

2. Find the database to import

3. Run the SQL file and select the path of the SQL file.

4. Start Import

Import succeeded. You can view the imported SQL file in the database.

Related Article

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.