导入数据的时候,mysql报错 ERROR 1406 : Data too long for column Data too long for column
解决办法:文章源自很文博客https://www.hinwi.com/很文博客-https://www.hinwi.com/18056.html
在my.ini里找到文章源自很文博客https://www.hinwi.com/很文博客-https://www.hinwi.com/18056.html
sql-mode=”STRICT_TRANS_TABLES,NO_AUTO_Create_USER,NO_ENGINE_SUBSTITUTION”
把其中的STRICT_TRANS_TABLES,去掉,文章源自很文博客https://www.hinwi.com/很文博客-https://www.hinwi.com/18056.html
或者把sql-mode=STRICT_TRANS_TABLES,NO_AUTO_Create_USER,NO_ENGINE_SUBSTITUTION文章源自很文博客https://www.hinwi.com/很文博客-https://www.hinwi.com/18056.html
注释掉,然后重启mysql就ok了文章源自很文博客https://www.hinwi.com/很文博客-https://www.hinwi.com/18056.html 文章源自很文博客https://www.hinwi.com/很文博客-https://www.hinwi.com/18056.html
评论