Mysql Database Import and Export, mysql Import and Export

Source: Internet
Author: User

Mysql Database Import and Export, mysql Import and Export

Mysql Command
Export Select * from table name into outfile "Address ";
Import Source D:/mydb. SQL/* import External SQL files to the database */

Dos command
Mysqldump-uroot-p123456 test> c:/a. SQL in the dos window, enter this command. test is the name of the database to be exported.
Mysqldump-uroot-p123456 test t1> c:/a. SQL in the dos window, enter this command to export table t1 in the test database.


By default, mysql imposes a limit on the size of the imported file. The maximum size is 2 MB. Therefore, when the file is large, it cannot be imported directly.
Solution: 1. Modify related parameters in php. ini: There are three parameters that affect the size of the mysql import file:
Memory_limit = 128 M, upload_max_filesize = 2 M, post_max_size = 8 M modify upload_max_filesize = 200 M? Modify the size that meets your needs. Can you modify the other two memory_limit = 250 M at the same time? Post_max_size = 200M so that the. SQL file below MB can be imported.

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.