"MySQL must know" learn 2018/7/24--Huan

Source: Internet
Author: User
Tags mysql import

Resolve the issue in 1:mysql Import the SQL file.

Step 1:show databases; #看看我有什么数据库

Step 2:use hh; #我要用hh这个数据库, return to database changed instructions open successfully.

Step 3:show tables; #看看hh这个数据库里面有那些表

Step 4:source F:/bzbh/mysql_scripts/create.sql; # (another source f:/bzbh/mysql_scripts/populate.sql) the location of the script is F:\bzbh\mysql_scripts

Step 4:show tables; #再次看看hh数据库里面有那些表 to see if the two scripts you just imported were successful. Note: The two script that you just imported, not two tables, so the table name is not the same as the name of the script. You can see that the table has been added a few, is the script inside the table again.

"MySQL must know" learn 2018/7/24--Huan

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.