1. 设置maxpacket。mysql
要在[mysqld]标签下。这个疏忽了,就会发现没效果。sql
基本网上的都没说清,要看stackoverflow。数据库
Change in the my.ini file. Include the single line under [mysqld] in your file命令行
max_allowed_packet=500Mtest
2. 在命令行,登录mysql,制定encodingcoding
mysql -uroot -P3308 -p123456 - -default-character-set=utf8file
3. 进入数据库,运行source打入。stackoverflow
source E:ydj\test.sql数据