nacos 报错:No Datasource Set
docker 启动nacos访问不了:curl: (7) Failed connect to 192.168.11.91:8848; Connection refused
docker logs nacos查看日志:No Datasource Set
检查配置文件:custom.properties
1、账号密码,mysql可以登陆
2、mysql是否开放了3306端口,以开放
3、百度说是nacos和mysql版本不兼容的问题,重新安装mysql先pass
4、db.url的问题,将配置文件的:db.url.0=jdbc:mysql://localhost:3306/nacos_config?characterEncoding=utf8&connectTimeout=1000&socketTimeout=3000&autoReconnect=true,后加上UTC的参数
db.url.0=jdbc:mysql://localhost:3306/nacos_config?characterEncoding=utf8&connectTimeout=1000&socketTimeout=3000&autoReconnect=true&serverTimezone=UTC
转载请记录来源!!!!
https://www.cnblogs.com/leihongnu/