PolarDB-X 上启动报错什么问题?2024-01-09 10:15:13.253 [main] INFO o.f.c.i.database.base.DatabaseType - Database: jdbc:mysql://127.0.0.1:4886/polardbx_meta_db_polardbx (MySQL 8.0)
2024-01-09 10:15:13.315 [main] INFO o.f.core.internal.command.DbBaseline - Schema history table polardbx_meta_db_polardbx
.binlog_schema_history
already initialized with (1,<< Flyway Baseline >>). Skipping.
2024-01-09 10:15:13.323 [main] INFO o.f.c.i.license.VersionPrinter - Flyway Community Edition 7.3.0 by Redgate
2024-01-09 10:15:13.353 [main] INFO o.f.c.i.s.JdbcTableSchemaHistory - Repair of failed migration in Schema History table polardbx_meta_db_polardbx
.binlog_schema_history
not necessary. No failed migration detected.
2024-01-09 10:15:13.378 [main] INFO o.f.core.internal.command.DbRepair - Successfully repaired schema history table polardbx_meta_db_polardbx
.binlog_schema_history
(execution time 00:00.038s).
2024-01-09 10:15:13.381 [main] INFO o.f.c.i.license.VersionPrinter - Flyway Community Edition 7.3.0 by Redgate
2024-01-09 10:15:13.407 [main] INFO o.f.core.internal.command.DbValidate - Successfully validated 26 migrations (execution time 00:00.014s)
2024-01-09 10:15:13.416 [main] INFO o.f.core.internal.command.DbMigrate - Current version of schema polardbx_meta_db_polardbx
: 26
2024-01-09 10:15:13.417 [main] INFO o.f.core.internal.command.DbMigrate - Schema polardbx_meta_db_polardbx
is up to date. No migration necessary.
2024-01-09 10:15:13.524 [main] ERROR c.a.p.binlog.daemon.DaemonBootStrap - ## Something goes wrong when starting up the daemon process:
org.apache.ibatis.exceptions.PersistenceException:
at org.apache.ibatis.exceptions.ExceptionFactory.wrapException(ExceptionFactory.java:30)
at org.apache.ibatis.session.defaults.DefaultSqlSession.update(DefaultSqlSession.java:199)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.base/java.lang.reflect.Method.invoke(Method.java:566)
at org.mybatis.spring.SqlSessionTemplate$SqlSessionInterceptor.invoke(SqlSessionTemplate.java:426)
at com.sun.proxy.$Proxy22.update(Unknown Source)
at org.mybatis.spring.SqlSessionTemplate.update(SqlSessionTemplate.java:287)
at org.apache.ibatis.binding.MapperMethod.execute(MapperMethod.java:67)
at org.apache.ibatis.binding.MapperProxy$PlainMethodInvoker.invoke(MapperProxy.java:152)
at org.apache.ibatis.binding.MapperProxy.invoke(MapperProxy.java:85)
at com.sun.proxy.$Proxy38.update(Unknown Source)
at org.mybatis.dynamic.sql.util.mybatis3.MyBatis3Utils.update(MyBatis3Utils.java:158)
at com.aliyun.polardbx.binlog.dao.BinlogPhyDdlHistoryMapper.update(BinlogPhyDdlHistoryMapper.java:200)
at java.base/java.lang.invoke.MethodHandle.invokeWithArguments(MethodHandle.java:710)
at org.apache.ibatis.binding.MapperProxy$DefaultMethodInvoker.invoke(MapperProxy.java:166)
at org.apache.ibatis.binding.MapperProxy.invoke(MapperProxy.java:85)
at com.sun.proxy.$Proxy38.update(Unknown Source)
从日志中可以看出,启动PolarDB-X时出现了错误。具体的错误信息是:
org.apache.ibatis.exceptions.PersistenceException:
Error updating database. Cause: java.sql.SQLEx
这个错误是由于在更新数据库时发生了异常。可能的原因有很多,例如数据库连接问题、表结构问题等。为了解决这个问题,你可以尝试以下方法:
/var/log/polardbx
目录下。版权声明:本文内容由阿里云实名注册用户自发贡献,版权归原作者所有,阿里云开发者社区不拥有其著作权,亦不承担相应法律责任。具体规则请查看《阿里云开发者社区用户服务协议》和《阿里云开发者社区知识产权保护指引》。如果您发现本社区中有涉嫌抄袭的内容,填写侵权投诉表单进行举报,一经查实,本社区将立刻删除涉嫌侵权内容。
PolarDB 分布式版 (PolarDB for Xscale,简称“PolarDB-X”) 是阿里云自主设计研发的高性能云原生分布式数据库产品,为用户提供高吞吐、大存储、低延时、易扩展和超高可用的云时代数据库服务。