MySQL little knowledge point (about database Import Export for Windows)

Source: Internet
Author: User

For an existing data, how do we package it into a. sql property file?

Make these two statements directly:

1 D:\Program files\mysql\mysql\bin>-->D://str  . SQL2* * *

Thus, a str.sql file was generated

But we generated a SQL procedure, how to draw it into the database?? This is just a operation for MySQL!!

First, we enter CMD---mysql-uroot-p***;

Then do such an operation,mysql> source D://str.sql

This can be imported into the database!!!!

Query OK, 0 rows affected (0.05 sec)

Query OK, 0 rows Affected (0.00 sec)

Query OK, 0 rows Affected (0.00 sec)

Query OK, 0 rows Affected (0.00 sec)

Query OK, 0 rows Affected (0.00 sec)

Query OK, 0 rows Affected (0.00 sec)

Query OK, 0 rows Affected (0.00 sec)

Query OK, 0 rows Affected (0.00 sec)

Query OK, 0 rows Affected (0.00 sec)

Query OK, 0 rows Affected (0.00 sec)

ERROR 1046 (3d000): No Database selected
Query OK, 0 rows Affected (0.00 sec)

Query OK, 0 rows Affected (0.00 sec)

ERROR 1046 (3d000): No Database selected
Query OK, 0 rows Affected (0.00 sec)

ERROR 1046 (3d000): No Database selected
ERROR 1046 (3d000): No Database selected
ERROR 1046 (3d000): No Database selected
ERROR 1046 (3d000): No Database selected
Query OK, 0 rows Affected (0.00 sec)

ERROR 1046 (3d000): No Database selected
Query OK, 0 rows Affected (0.00 sec)

Query OK, 0 rows Affected (0.00 sec)

ERROR 1046 (3d000): No Database selected
Query OK, 0 rows Affected (0.00 sec)

ERROR 1046 (3d000): No Database selected
ERROR 1046 (3d000): No Database selected
ERROR 1046 (3d000): No Database selected
ERROR 1046 (3d000): No Database selected
Query OK, 0 rows Affected (0.00 sec)

Query OK, 0 rows Affected (0.00 sec)

Query OK, 0 rows Affected (0.00 sec)

Query OK, 0 rows Affected (0.00 sec)

Query OK, 0 rows Affected (0.00 sec)

Query OK, 0 rows Affected (0.00 sec)

Query OK, 0 rows Affected (0.00 sec)

Query OK, 0 rows Affected (0.00 sec)

Query OK, 0 rows Affected (0.00 sec)

Mysql>

MySQL little knowledge point (about database Import Export for Windows)

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.