MYSQL 大文件无法导入的问题。

1. 设置maxpacket。

要在[mysqld]标签下。这个疏忽了,就会发现没效果。

基本网上的都没说清,要看stackoverflow。

Change in the my.ini file. Include the single line under [mysqld] in your file

max_allowed_packet=500M

2. 在命令行,登陆mysql,制定encoding

mysql -uroot -P3308 -p123456  - -default-character-set=utf8

3. 进入数据库,运行source打入。

source  E:ydj est.sql

原文地址:https://www.cnblogs.com/zc22/p/3472746.html