环境是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.无法重启?
求解
高洛峰2017-04-17 15:20:16
Your reason is: the length of the inserted field exceeds the set length
Reference: http://blog.csdn.net/whq19890...