How to configure MySQL8 in Nacos

How to configure MySQL8 in Nacos

1. Create the MySQL database nacos_config

2. Select the database nacos_config and execute the Nacos built-in table creation script https://github.com/alibaba/nacos/blob/master/distribution/conf/nacos-mysql.sql or conf/nacos-mysql.sql in the nacos installation directory

3. Download the source code https://github.com/alibaba/nacos/tree/1.2.0

4. Modify the root pom.xml

5. Modify com.alibaba.nacos.naming.healthcheck.MysqlHealthCheckProcessor

6. Package the console project

7. Replace the jar file deployed under nacos/target with console\target\nacos-server.jar

8. Modify the nacos configuration file and add serverTimezone=GMT%2B8 in db.url

This is the end of this article about how to configure MySQL8 with Nacos. For more information about how to configure MySQL8 with Nacos, please search for previous articles on 123WORDPRESS.COM or continue to browse the following related articles. I hope you will support 123WORDPRESS.COM in the future!

You may also be interested in:
  • Solution to nacos not being able to connect to mysql

<<:  XHTML 2.0 New Features Preview

>>:  About the problem of dynamic splicing src image address of img in Vue

Recommend

Native JavaScript message board

This article shares the specific code of JavaScri...

Several ways to submit HTML forms_PowerNode Java Academy

Method 1: Submit via the submit button <!DOCTY...

Example of how to create and run multiple MySQL containers in Docker

1. Use the mysql/mysql-server:latest image to qui...

jQuery implements navigation bar effect with expansion animation

I designed and customized a navigation bar with a...

Building a Redis cluster on Docker

Table of contents 1. Pull the image 2. Create a R...

MySQL compressed package version zip installation configuration method

There are some problems with the compressed versi...

CSS flex several multi-column layout

Basic three-column layout .container{ display: fl...

Should nullable fields in MySQL be set to NULL or NOT NULL?

People who often use MySQL may encounter the foll...

Implementation of crawler Scrapy image created by dockerfile based on alpine

1. Download the alpine image [root@DockerBrian ~]...

Solution to the Docker container cannot be stopped and deleted

Find the running container id docker ps Find the ...

Summary of SQL deduplication methods

When using SQL to extract data, we often encounte...

Vue3.0 project construction and usage process

Table of contents 1. Project construction 2: Dire...

Linux kernel device driver kernel time management notes

/****************** * Linux kernel time managemen...

Vue+element+oss realizes front-end fragment upload and breakpoint resume

Pure front-end implementation:切片上傳斷點續傳.斷點續傳needs ...