### Error updating database. Cause: com.mysql.jdbc.MysqlDataTruncation: Data truncation: Data too long for column 'course_id' at row 1
### The error may involve com.course.server.mapper.ChapterMapper.insert-Inline
### The error occurred while setting parameters
### SQL: insert into chapter (id, course_id, name) values (?, ?, ?)
### Cause: com.mysql.jdbc.MysqlDataTruncation: Data truncation: Data too long for column 'course_id' at row 1
; Data truncation: Data too long for column 'course_id' at row 1; nested exception is com.mysql.jdbc.MysqlDataTruncation: Data truncation: Data too long for column 'course_id' at row 1] with root cause
com.mysql.jdbc.MysqlDataTruncation: Data truncation: Data too long for column 'course_id' at row 1
at com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:3868)
查看日志明白解决了,谢谢老师。