开发者社区 问答 正文

nacos win10 使用mysql 8.0 报错

org.springframework.jdbc.CannotGetJdbcConnectionException: PreparedStatementCallback; Could not retrieve transation read-only status server; nested exception is java.sql.SQLException: Could not retrieve transation read-only status server
        at com.alibaba.nacos.config.server.exception.GlobalExceptionHandler.handleDataAccessException(GlobalExceptionHandler.java:76)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        at java.lang.reflect.Method.invoke(Method.java:498)

展开
收起
一人吃饱,全家不饿 2021-02-01 19:52:44 933 分享 版权
来自: 阿里开源
1 条回答
写回答
取消 提交回答
  • windows环境用 startup.bat启动 但是没有把%BASE_DIR%\plugins\mysql加入classpath路径,导致会使用默认的mysql驱动.

    修改startup.bat,添加上%BASE_DIR%\plugins\mysql路径就解决了.

    2021-02-01 19:52:54
    赞同 展开评论