com.mysql.jdbc.MysqlDataTruncation

Data truncation: Data too long for column 'name' at row 1

Solutions on the web294

  • via GitHub by cjm721
    , 1 year ago
    Data truncation: Data too long for column 'name' at row 1
  • Data truncation: Data too long for column 'name' at row 1
  • Data truncation: Data too long for column 'name' at row 1
  • Stack trace

    • com.mysql.jdbc.MysqlDataTruncation: Data truncation: Data too long for column 'name' at row 1 at com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:3885) at com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:3823) at com.mysql.jdbc.MysqlIO.sendCommand(MysqlIO.java:2435) at com.mysql.jdbc.MysqlIO.sqlQueryDirect(MysqlIO.java:2582) at com.mysql.jdbc.ConnectionImpl.execSQL(ConnectionImpl.java:2530) at com.mysql.jdbc.PreparedStatement.executeInternal(PreparedStatement.java:1907) at com.mysql.jdbc.PreparedStatement.executeUpdate(PreparedStatement.java:2141) at com.mysql.jdbc.PreparedStatement.executeUpdate(PreparedStatement.java:2077) at com.mysql.jdbc.PreparedStatement.executeUpdate(PreparedStatement.java:2062) at com.mousycoder.server.jdbc.JdbcTransaction.insertTest2(JdbcTransaction.java:73) at com.mousycoder.server.jdbc.JdbcTransaction.main(JdbcTransaction.java:23)

    Write tip

    You have a different solution? A short tip here would help you and many other users who saw this issue last week.

    Users with the same issue

    2 times, 1 year ago
    Unknown user
    Once, 1 year ago
    Unknown user
    Once, 2 years ago
    Once, 2 months ago
    Once, 3 months ago
    21 more bugmates