MYSQL 大文件沒法導入的問題。

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數據

相關文章
相關標籤/搜索