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

Implementation of react routing guard (routing interception)

React is different from Vue. It implements route ...

js uses cookies to remember user page operations

Preface During the development process, we someti...

Implementation example of Docker rocketmq deployment

Table of contents Preparation Deployment process ...

Detailed explanation of the WeChat applet request pre-processing method

question Because some of our pages request data i...

How to install nginx on win10

Because the company asked me to build a WebServic...

How to handle the tcp_mark_head_lost error reported by the Linux system

Problem Description Recently, a host reported the...

Briefly describe mysql monitoring group replication

Original text: https://dev.mysql.com/doc/refman/8...

Sample code for configuring nginx to support https

1. Introduction Are you still leaving your websit...

Detailed explanation of HTML basic tags and structures

1. HTML Overview 1.HTML: Hypertext Markup Languag...

Solution to the problem of mysql master-slave switch canal

After configuring VIP, the error message that app...

How to set PATH environment variable in Linux system (3 methods)

1. In Windows system, many software installations...

React-native sample code to implement the shopping cart sliding deletion effect

Basically all e-commerce projects have the functi...

Detailed example of how to implement transaction commit and rollback in mysql

Recently, we need to perform a scheduled migratio...