Home  >  Q&A  >  body text

数据库 - MYSQL提示数据过长错误,根据网上的解决方案无法解决

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

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

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

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

黄舟黄舟2731 days ago1047

reply all(1)I'll reply

  • 高洛峰

    高洛峰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...

    reply
    0
  • Cancelreply