数据库 - MYSQL提示数据过长错误,根据网上的解决方案无法解决
黄舟
黄舟 2017-04-17 15:18:16
0
1
1043

环境是WAMPSERVER
错误类型如下,应该可以肯定是字符编码的问题:

SQLSTATE[22001]: String data, right truncated: 1406 Data too long for column 'merchant_fee' at row 1

根据网上给出的解决方案:

  • 在mysql.ini中设置[mysql]的默认字符集为gbk

但在wampserver下设置mysql.ini,保存并重启all sevices.无法重启?
求解

黄舟
黄舟

人生最曼妙的风景,竟是内心的淡定与从容!

reply all(1)
小葫芦

Your reason is: the length of the inserted field exceeds the set length
Reference: http://blog.csdn.net/whq19890...

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!