Import data to the MySQL database through the SQL File

Source: Internet
Author: User
Tags mysql command line
1. enter the MySQL command line; 2. enter the password. 3. determines whether the database exists. If yes, delete drop database xxx; 4. create Database xxx; 5. use Database use xxx; (Note: The above XXX is the database name, which can be found in the header comment of the SQL file) 6. full path of the source SQL file imported into the database; for example, source D:/test. SQL; 7. close the command line. ---------------------------------------------------------------- Enter the MySQL command line and enter the password to drop database test; Create Database test; use test; source D:/test. SQL; in this way, a database test is created, and D:/test is executed. SQL statements in the SQL File

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.