问题前提:
使用nacos1.2.1+mysql8.0报错,但是在网上找到许多方法也没有解决,所以放弃了,希望有兄弟知道解决方法可以讲一下。
转换nacos的版本了:nacos1.4.2+mysql8.0
Unable to start web server; nested exception is org.springframework.boot.web.server.WebServerException: Unable to start embedded Tomcat
首先因为我不是集群模式,所以修改startup.cmd
set MODE="cluster"
修改为
set MODE="standalone"
我的数据库名称nacos_config 但是总是报错“unknown database nacos_config”所以我修改了数据库的名称为nacos
spring.datasource.platform=mysql
db.num=1
db.url.0=jdbc:mysql://127.0.0.1:3306/nacos?characterEncoding=utf8&connectTimeout=1000&socketTimeout=3000&autoReconnect=true&useUnicode=true&useSSL=false&serverTimezone=UTC
db.user.0=root
db.password.0=root
这样就启动成功了