您的位置:首页 > 数据库 > MySQL

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

2013-12-13 11:35 405 查看
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\test.sql
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: