Import large files under MySQL windows

Source: Internet
Author: User

Go to your MySQL bin directory first

CD D:/php/mysql/bin

Enter command mysql-u user name-p password database name < file path < import > for export

Mysql-u root-p root eee < d:/eee.sql

In the event of the following error

MYSQL server has gone away

Please modify the configuration file under MySQL My.ini 30M for your file size.

Max_allowed_packet = 30M

If the Chinese garbled please try the following

Mysql-u root-p root--default-character-set=utf8 eee < d:/eee.sql

If the Chinese is garbled please try other characters GBK and so on. I have encountered this problem, SQL file encoding is UTF8, the database is also UTF8 modified code to UFT8 garbled, modified to GBK is normal.

Import large files under MySQL 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.