![](https://img-blog.csdnimg.cn/20201014180756928.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
DATA BASE
文章平均质量分 62
Erato Rabbit
这个作者很懒,什么都没留下…
展开
-
kafka 报错 - Cannot assign requested address
因为如果是 kafka 集群,你可以选择只给客户端配置一个 kafka 节点的地址(这样是不推荐的),但是客户端必须要访问集群中的每一个节点,所以必须通过这个节点获得集群中每一个节点的访问地址。而且有的环境可能被配置成这些 kafka 宿主机是没有外网访问权限的,即虽然他可以访问自己的外网ip,但是访问不了兄弟节点的外网ip。网上教程就有很多了。在华为云服务器上跑了 zookeeper 和 kafka 的 broker,想内外网分流,重点就是做不到从外网去消费,比如用自己的 windows 笔记本去消费。原创 2023-06-13 19:46:26 · 2918 阅读 · 0 评论 -
PowerDesigner为表字段添加Comment注释
powerdesigner 找到Comment并打勾,也可以在这个页面排序,去掉自己不需要的功能(去掉勾选即可)使用PowerDesigner工具设计数据库表,为其中的一些字段增加注释。5、设置好后点击preview可以看到生成的创建表的SQL语句。4、这时就会多出一列Comment,可以为表中字段添加注释。2、选择Columns选项,点击如图按钮。1、双击需要生成字段注释的表。设置好后点击OK保存设置。转载 2023-05-06 15:23:55 · 2362 阅读 · 1 评论 -
Redis - Explain in Detail
no support for Acridone of the first tasks when using Redis and Spring is to connect to the store /store means the redis/ through the IoC container. To do that, a Java connector (or binding) is required. No matter the library you choose, you need to原创 2023-03-27 12:02:51 · 456 阅读 · 0 评论 -
Mybatis - Mapper XML Files
The Mapper XML files have only a few first class elements (in the order that they should be defined):The next sections will describe each of these elements in detail, starting with the statements themselves.This tells MyBatis to create a PreparedStatement原创 2023-03-27 11:26:10 · 417 阅读 · 0 评论 -
org.apache.ibatis.binding.BindingException: Invalid bound statement (not found):
前人教训 - ‘namespace’:前人教训 - file name前人教训 - ‘mapper-location’:是否 Mapper interface 和 .xml 的函数名称对应不上去掉 .xml 中的中文注释随意在 .xml 中加一个空格或者空行然后保存。原创 2023-02-11 01:11:04 · 300 阅读 · 0 评论 -
mysql 远程连接数据库相关
在localhost登入mysql后,更改 “mysql” 数据库里的 “user” 表里的 “host” 项,将"localhost"改称"%"1、在采用法二授权法之后,无法在本地登录mysql(如:#mysql -u root -p -h 192.168.5.116。如:MySQL 连接远程数据库(192.168.5.116),端口“3306”,用户名为“root”,密码“123456”1、这时可以使用:mysql -u root -p 登录,进入到mysql后。2、在本地使用ip地址登录。转载 2023-01-29 16:16:36 · 2581 阅读 · 0 评论 -
Failed to determine a suitable driver class
改成 yml -> yaml 后 target 里有了。SpringBoot 启动不成功。Spring 没找着配置文件,target里没有配置文件。原创 2022-09-23 14:32:34 · 346 阅读 · 0 评论 -
spring-boot-starter-data-redis 远程主机强迫关闭了一个现有连接
spring-boot-starter-data-redis:2.5.6 连接, 连接池是默认的 lettuce.但用 GUI 客户端 Redis Desktop Manager, 可以成功连接。: java.io.IOException: 远程主机强迫关闭了一个现有的连接。配置类里去掉下面这部分。redis 版本 6.2.7。原创 2022-09-20 17:49:32 · 1226 阅读 · 0 评论 -
SQL中的DML、DDL以及DCL是什么?
DDL(data definition language)是数据定义语言:DDL比DML要多,主要的命令有CREATE、ALTER、DROP等,DDL主要是用在定义或改变表(TABLE)的结构,数据类型,表之间的链接和约束等初始化工作上,他们大多在建立表时使用。DML(data manipulation language)是数据操纵语言:它们是SELECT、UPDATE、INSERT、DELETE,就象它的名字一样,这4条命令是用来对数据库里的数据进行操作的语言。SQL中的DML、DDL以及DCL是什么?.转载 2022-08-06 21:27:58 · 745 阅读 · 0 评论 -
Spring 的缓存管理器 CacheManager
配置了缓存管理器后,Spring就允许用注解的方式使用缓存了。使用的注解有4个注解描述@Cachable表明在进入方法之前,Spring会先从缓存服务器中查找对应key的缓存值,如果找到缓存值,那么Spring将不再调用方法,而是将缓存值直接返回给调用者;如果没有找到缓存值,那么spring就会执行方法,将最后的结果通过key保存到缓存服务器中。@CachePutSpring会将该方法的返回值缓存到缓存服务器中。spring不会事先去缓存服务器中查找,而是直接执行方法,然后缓存。...转载 2022-08-06 16:39:52 · 3350 阅读 · 0 评论 -
Spring Data Redis Ref Doc
NoSQL 存储席卷了存储世界。这是一个广阔的领域,有大量的解决方案、术语和模式(更糟糕的是,甚至这个术语本身也有多种含义)。虽然有些原则很常见,但您必须在一定程度上熟悉 SDR 支持的商店。熟悉这些解决方案的最佳方法是阅读他们的文档并遵循他们的示例。完成这些练习通常不会超过五到十分钟,如果您来自 RDMBS-only 背景,很多时候这些练习可以让您大开眼界。......翻译 2022-08-05 11:00:35 · 112 阅读 · 0 评论 -
powerdesigner显示Comment注释
powerdesigner中执行命令: 打开菜单Tools>Execute Commands>Edit/Run Script…或者用快捷键 Ctrl+Shift+X ,如下图。工作中经常遇到数据库中的表有comment ,但再powerdesigner中显示时都是英文字段,1:需要把数据库中的comment 字段 覆盖 name字段从而实现,操作如下。执行脚本如下:目的是把comment注释覆盖到name字段。2:也可以把name字段覆盖到comment中。我们需要直观的展示,如下图。...转载 2022-08-03 11:55:13 · 2370 阅读 · 0 评论 -
Access Control and Account Management
MySQL 5.7 Reference Manual / Security / Access Control and Account ManagementMySQL stores accounts in the table of the system database. An account is defined in terms of a user name and the client host or hosts from which the user can connect to the s原创 2022-06-17 16:07:26 · 148 阅读 · 0 评论 -
ibatis.type.TypeException: Could not resolve type alias ‘Payment’
Caused by: org.apache.ibatis.builder.BuilderException: Error parsing Mapper XML. Cause: org.apache.ibatis.builder.BuilderException: Error resolving class. Cause: org.apache.ibatis.type.TypeException: Could not resolve type alias 'Payment'.原创 2022-06-01 17:47:11 · 349 阅读 · 1 评论 -
Mysql Server logs > Error logs
This section discusses how to configure the MySQL server for logging of diagnostic messages to the error log. For information about selecting the error message character set and language, see Section 10.6, “Error Message Character Set”, and Section 10.12,原创 2022-06-01 13:34:15 · 285 阅读 · 0 评论 -
Mysql Official site | Mysql Programs > Client Programs
This section describes client programs that connect to the MySQL server.mysql — The MySQL Command-Line Clientmysql is a simple SQL shell with input line editing capabilities.它支持交互式和非交互式使用。 交互使用时,查询结果以 ASCII 表格式显示。 当以非交互方式使用时(例如,作为过滤器),结果以制表符分隔的格式显示。 可以原创 2022-06-01 12:26:19 · 117 阅读 · 0 评论 -
Command options for connecting to the MYSQL Server
This section describes options supported by most MySQL client programs that control how client programs establish connections to the server, whether connections are encrypted, and whether connections are compressed. These options can be given on the comman原创 2022-05-18 23:53:29 · 105 阅读 · 0 评论 -
MySQL ERROR 1045 (28000): Access denied for user ‘root‘@‘localhost‘ (using password: YES)
ERROR 1045 (28000): Access denied for user 'root'@'localhost' (using password: YES)原创 2022-05-18 23:55:59 · 135 阅读 · 0 评论 -
SQL GUI Navicat 连接报错 2059 Authentication plugin ‘caching_sha2_password‘
该错误的原因是在MySQL8之前版本中加密规则mysql_native_password,而在MySQL8以后的加密规则为caching_sha2_password。解决此问题有两种方法,一种是更新navicat驱动来解决此问题,一种是将mysql用户登录的加密规则修改为mysql_native_password。此处采用第二种方式。在 mysql 命令行设置加密规则为mysql_native_password重新访问navicat,提示连接成功。原创 2022-06-01 12:21:59 · 293 阅读 · 0 评论