linux集群nacos报 Failed to obtain JDBC Connection; nested exception is org.apache.commons.dbcp.SQLNeste

Failed to obtain JDBC Connection; nested exception is org.apache.commons.dbcp.SQLNestedException: Cannot create PoolableConnectionFactory (Could not create connection to database server. Attempted reconnect 3 times. Giving up.)

使用软件:

  1.             mysql8.0.19 
    			nacos 1.2.0 
    			jdk 1.8+
    
  2. nacos1.2.0不支持 太高版本的数据库

  3. 解决方案 添加mysq 连接 mysql-connector-java 如下

  4. 找到自己的nacos 解压目录 我的是 /usr/local/nacos 添加 plugins/mysql 目录 把jar包放到里这个目录下
    linux集群nacos报 Failed to obtain JDBC Connection; nested exception is org.apache.commons.dbcp.SQLNeste_第1张图片

  5. 再启动nacos 应该就能访问了 http://192.168.183.13:8841/nacos/#/login

  6. 一定要查看日志呀

你可能感兴趣的:(nacos)