Hibernate Flyway警告:SQL状态:HY000-错误代码:1366

Hibernate Flyway警告:SQL状态:HY000-错误代码:1366,hibernate,spring-boot,spring-data-jpa,flyway,Hibernate,Spring Boot,Spring Data Jpa,Flyway,不过,SpringBoot中的Flyway在运行第一个版本的数据库时仍能正常工作,该数据库相当大,除了控制台中的数据库模式日志之外,还包含许多insert语句 2017-11-01 17:04:16.096 INFO 1268 --- [ restartedMain] trationDelegate$BeanPostProcessorChecker : Bean 'flyway' of type [class org.flywaydb.core.Flyway] is not eligible

不过,SpringBoot中的Flyway在运行第一个版本的数据库时仍能正常工作,该数据库相当大,除了控制台中的数据库模式日志之外,还包含许多insert语句

2017-11-01 17:04:16.096  INFO 1268 --- [  restartedMain] trationDelegate$BeanPostProcessorChecker : Bean 'flyway' of type [class org.flywaydb.core.Flyway] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying)
2017-11-01 17:04:16.105  INFO 1268 --- [  restartedMain] o.f.core.internal.util.VersionPrinter    : Flyway 3.2.1 by Boxfuse
2017-11-01 17:04:16.367  INFO 1268 --- [  restartedMain] o.f.c.i.dbsupport.DbSupportFactory       : Database: jdbc:mysql://localhost/coop_erp (MySQL 5.5)
2017-11-01 17:04:16.397  INFO 1268 --- [  restartedMain] o.f.core.internal.command.DbValidate     : Validated 2 migrations (execution time 00:00.014s)
2017-11-01 17:04:16.463  INFO 1268 --- [  restartedMain] o.f.c.i.metadatatable.MetaDataTableImpl  : Creating Metadata table: `coop_erp`.`schema_version`
2017-11-01 17:04:19.678  INFO 1268 --- [  restartedMain] o.f.core.internal.command.DbMigrate      : Current version of schema `coop_erp`: << Empty Schema >>
2017-11-01 17:04:19.679  INFO 1268 --- [  restartedMain] o.f.core.internal.command.DbMigrate      : Migrating schema `coop_erp` to version 1.1 - Init
2017-11-01 17:05:03.707  WARN 1268 --- [  restartedMain] o.f.c.internal.dbsupport.JdbcTemplate    : DB: Incorrect string value: '\xA0Produ...' for column 'description' at row 5 (SQL State: HY000 - Error Code: 1366)
2017-11-01 17:05:03.708  WARN 1268 --- [  restartedMain] o.f.c.internal.dbsupport.JdbcTemplate    : DB: Incorrect string value: '\xA0Inven...' for column 'friendly_name' at row 78 (SQL State: HY000 - Error Code: 1366)
2017-11-01 17:04:16.096信息1268-[restartedMain]trationLegate$BeanPostProcessor检查:类型为[class org.flywaydb.core.flyway]的Bean“flyway”不符合由所有BeanPostProcessor处理的条件(例如:不符合自动代理的条件)
2017-11-01 17:04:16.105信息1268---[restartedMain]o.f.core.internal.util.VersionPrinter:Flyway 3.2.1 by Boxfuse
2017-11-01 17:04:16.367信息1268---[restartedMain]o.f.c.i.dbsupport.DbSupportFactory:数据库:jdbc:mysql://localhost/coop_erp (MySQL 5.5)
2017-11-01 17:04:16.397信息1268---[restartedMain]o.f.core.internal.command.DbValidate:已验证的2次迁移(执行时间00:00.014s)
2017-11-01 17:04:16.463信息1268---[restartedMain]o.f.c.i.metadatatable.MetaDataTableImpl:创建元数据表:`coop_erp`.`schema_版本`
2017-11-01 17:04:19.678信息1268---[restartedMain]o.f.core.internal.command.DbMigrate:模式“coop_erp”的当前版本::>
2017-11-01 17:04:19.679信息1268---[restartedMain]o.f.core.internal.command.DbMigrate:将架构“coop_erp”迁移到版本1.1-Init
2017-11-01 17:05:03.707 WARN 1268---[restartedMain]o.f.c.internal.dbsupport.JdbcTemplate:DB:不正确的字符串值:“\xA0Produ…”用于第5行的“描述”列(SQL状态:HY000-错误代码:1366)
2017-11-01 17:05:03.708 WARN 1268---[restartedMain]o.f.c.internal.dbsupport.JdbcTemplate:DB:第78行“friendly_name”列的字符串值不正确:“\xA0Inven…”(SQL状态:HY000-错误代码:1366)
问题 如何消除警告:
SQL状态:HY000-错误代码:1366

这是否意味着未插入导致错误的数据


注意:数据库模式和数据已从MySQL Workbench中提取。

我自己设法找到了解决方案。由于某些原因,flyway不喜欢单词中的双空格。删除双空格可以使数据库迁移顺利进行。 微风