当前位置:网站首页>Nacos数据库配置
Nacos数据库配置
2022-08-02 05:19:00 【m0_67402564】
本文来说下nacos数据库配置
文章目录
Nacos控制面板,新建配置
Nocas控制面板,新建配置

点击确定,配置新建成功

Nacos数据库配置
初始化mysql
初始化mysql数据库,导入数据库初始化文件:conf/nacos-mysql.sql,此处注意,数据库字符集是utf8mb4格式。utf8非真正意义上的中文字符集。

修改配置文件
修改conf/application.properties文件,增加支持mysql数据源配置(目前只支持mysql),添加mysql数据源的url、用户名和密码。

修改application.properties中数据库的配置信息

执行nacos-mysql.sql中的sql语句,按照语句中的要求新建一个nocas_config数据库

在控制面板中新建配置信息

在数据库中查看保存的配置信息,可以看到刚才添加的配置信息

本文小结
本文详细介绍了nocas中的数据库配置。
先自我介绍一下,小编13年上师交大毕业,曾经在小公司待过,去过华为OPPO等大厂,18年进入阿里,直到现在。深知大多数初中级java工程师,想要升技能,往往是需要自己摸索成长或是报班学习,但对于培训机构动则近万元的学费,着实压力不小。自己不成体系的自学效率很低又漫长,而且容易碰到天花板技术停止不前。因此我收集了一份《java开发全套学习资料》送给大家,初衷也很简单,就是希望帮助到想自学又不知道该从何学起的朋友,同时减轻大家的负担。添加下方名片,即可获取全套学习资料哦
边栏推荐
- PIL与numpy格式之间的转换
- kubernetes 亲和、反亲和、污点、容忍
- [OpenCV from entry to practice] image processing technology [pixel] (the most detailed in the whole network)
- 程序员写PPT的小技巧
- eggjs controller层调用controller层解决方案
- leetcode每天5题-Day04
- Redis-cluster mode (master-slave replication mode, sentinel mode, clustering mode)
- Redis database
- 代码编世界 科技创未来
- 从入门到精通的MySQL数据库视频教程
猜你喜欢

Different ways of shell scripting

Cyber Security Learning - Intranet Penetration 4

Block elements, inline elements (
elements, span elements)
对node工程进行压力测试与性能分析

MySQL数据表的基本操作和基于 MySQL数据表的基本操作的综合实例项目

Differences between i++ and ++i in loops in C language

在腾讯做外包测试的那些日子.....

Redis-cluster mode (master-slave replication mode, sentinel mode, clustering mode)

反向解析dns服务器

Introduction to coredns
随机推荐
洛谷小游戏大全(用洛谷的人都得知道)
51 MCU Peripherals: Infrared Communication
Differences between i++ and ++i in loops in C language
Difference and analysis of CPU usage and load
leetcode每天5题-Day04
提高软件测试能力的方法有哪些?看完这篇文章让你提升一个档次
C# 编码规范手册
Integrate ssm (1)
About the directory structure of the web application
Introduction to coredns
引领需求 为HR价值正名——“人力资源领先模型HRLM”成功首发
ATM系统
51 MCU peripherals: ADC
Redis(十二) - Redis消息队列
Guarantee WIFI security in home and enterprise-with AC and AP networking experiment
Features and installation of non-relational database MongoDB
Constructors, member variables, local variables
TikTok平台的两种账户有什么区别?
制作web3d动态产品展示的优点
Block elements, inline elements (
elements, span elements)