1、MySQL創(chuàng)建數(shù)據(jù)庫nacos_config
2、選中數(shù)據(jù)庫nacos_config,執(zhí)行Nacos自帶的創(chuàng)建表腳本https://github.com/alibaba/nacos/blob/master/distribution/conf/nacos-mysql.sql或nacos安裝目錄下conf/nacos-mysql.sql
3、下載源碼 https://github.com/alibaba/nacos/tree/1.2.0
4、修改根pom.xml

5、修改com.alibaba.nacos.naming.healthcheck.MysqlHealthCheckProcessor

6、打包console工程
7、將console\target\nacos-server.jar替換部署nacos/target下的jar文件
8、修改nacos配置文件,db.url中添加serverTimezone=GMT%2B8

到此這篇關(guān)于Nacos配置MySQL8的方法的文章就介紹到這了,更多相關(guān)Nacos配置MySQL8內(nèi)容請搜索腳本之家以前的文章或繼續(xù)瀏覽下面的相關(guān)文章希望大家以后多多支持腳本之家!