Home > Database > Mysql Tutorial > body text

MySQL使用有感小记

WBOY
Release: 2016-06-07 16:53:07
Original
919 people have browsed it

ERROR 1406 (22001): Data too long for column 解决方法导入数据的时候,MySQL报错:Data too long for column解决办法:在my.ini

ERROR 1406 (22001): Data too long for column 解决方法

导入数据的时候,,MySQL报错:Data too long for column

解决办法:

在my.ini里找到

sql-mode=”STRICT_TRANS_TABLES,NO_AUTO_CREATE_USER,NO_ENGINE_SUBSTITUTION”

把其中的STRICT_TRANS_TABLES,去掉,

或者把sql-mode=STRICT_TRANS_TABLES,NO_AUTO_CREATE_USER,NO_ENGINE_SUBSTITUTION

注释掉,然后重启MySQLl就ok了

linux

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!