protocol_version received protocol version

node连接mysql时报错Client does not support authentication protocol requested by server; consider upgrading MySQL client

尝试用node编写一个简单的登录接口,结果启动服务后请求接口出现了该错误。 其问题就是访问的工具身份验证协议过于落后,在node内安装的2.18.1 mysql包。 解决: 先登录数据库。 use mysql;(mysql为数据库名) 提示Database changed; 查询表中信息 ; sel ......

nodejs "Client does not support authentication protocol requested by server; consider upgrading MySQL client"

登录mysql输入以下命令: -- 选择mysql数据库:use mysql-- laremehpe是登录用户名ALTER USER 'laremehpe'@'localhost' IDENTIFIED BY 'password' PASSWORD EXPIRE NEVER;-- laremehpe ......

2023-11-15 Using insecure protocols with repositories, without explicit opt-in, is unsupported. ==> Gradle不支持不安全的 Maven 仓库协议,也就是http,请改为https

前言:运行android项目报错: A problem occurred configuring root project 'xxx'.> Could not resolve all dependencies for configuration ':classpath'. > Using insec ......

CF1542E2 Abnormal Permutation Pairs (hard version) 题解

怎么会有这么离谱的题目啊。 【模板】前缀和优化 dp。 思路 考虑一个基本的东西。 由于要求字典序的限制。 我们可以枚举最长公共前缀计算。 考虑如何求长度为 \(i\) 的排列有 \(j\) 个逆序对的数量。 设 \(dp_{i,j}\)。 \[dp_{i,j}=\sum_{k=0}^{i-1}dp ......
题解 Permutation Abnormal version 1542E

Protobuf - Protocol Buffer Compiler Installation

$ apt install -y protobuf-compiler To generate source code from .proto files, first install protoc, the protocol buffer compiler (https://grpc.io/docs ......

Codeforces Round 809 (Div. 2) D1. Chopping Carrots (Easy Version) 题解

题意 Codeforces Round 809 (Div. 2) D1. Chopping Carrots (Easy Version) 给两个整数\(n, k\), 一个数组 \(a\), 要求构造一个同样长度的数组 \(p\), 使得 \(\max\limits_{1 \le i \le n}\ ......
题解 Codeforces Chopping Carrots Version

关于.UnsupportedClassVersionError: org/example/Merge has been compiled by a more recent version of the Java Runtime (class file version 61.0), this version of 问题的彻底解决

问题描述 之前我是改变了本机上面的JDK的版本17为8; 然后这次我再次尝试MapReduce运行就报错了; 尝试更改IDEA中的环境JDK为8,还是一直显示这个错误~~~ 问题解决 根本问题在pom.xml文件这里,里面有定义我们使用的JDK的版本, 只要将其中的17改为8,然后再运行,就没有问题 ......

Passable Paths (hard version)

先写正常写法: 我的评价是,后面的分讨我直接树剖拿下。 我觉得这样分讨方便一点。 lca(u,v)=v(或者u,反证就是一条链的形状),那么 lca(u,i)==i,保证i在链上。 然后还有Y字形路径,lca(u,v)=t,则lca(u,i)=i且d[i]>=d[t]。 统一起来就是 \(lca(u ......
Passable version Paths hard

Error: install profile containers-default-0.50.1: generate default profile into pipe: get AppArmor version: convert AppArmor patch version: strconv.Atoi: parsing "0~alpha2": invalid syntax

Bug #2040082 “error parsing AppArmor version” : Bugs : golang-github-containers-common package : Ubuntu Bug #2040082 “error parsing AppArmor version” ......

斗地主案例 Console version

package pers.landlord_fighting.thj; /* 按照斗地主的规则,完成洗牌发牌的动作。 要求完成以下功能: 准备牌:组装54张扑克牌 洗牌:54张牌顺序打乱 发牌:三个玩家参与游戏,三人交替摸牌,每人17张牌,最后三张留作底牌。 看牌:查看三人各自手中的牌(按照牌的大小 ......
斗地主 案例 Console version

pip下载python软件包时报错 Could not find a version that satisfies the requirement requests_toolbelt (from versions: none)

pip下载python软件包时报错,使用了国内源等各种方法,后来才知道是电脑中打开了抓包工具;打开抓包工具后一定要关闭抓包工具,这样下载软件包就下载下来了 关闭抓包工具后,下载成功了 ......

CF1450C2 Errich-Tac-Toe (Hard Version)

思路 实际上,如果你会简单版本,那么困难版本也没有那么难了。 同样考虑构造一种通解,如下, 红色的格子改为 X,绿色的格子改为 O,就是一种通解,同样的,这样改可能会超过棋子总数的 \(\frac 1 3\)。 将方案整体向上挪一格和两格可以得到一共三种通解,这三种通解需要改的棋子总数就是棋盘上的棋 ......
Errich-Tac-Toe Version Errich 1450C 1450

CF1450C1 Errich-Tac-Toe (Easy Version)

思路 如果去考虑 O 的摆放,再考虑那些改为 X,这样不好思考,实现也很不好写,所以我们可以考虑构造一种通解。 如果将上图所有标红的位置都放上 X,那么无论 O 如何放,都不可能胜利,而 X 因为原本就没有,所以摆上后也不可能胜利。 不过,因为更改的次数不能超过棋子总数的 \(\frac 1 3\) ......
Errich-Tac-Toe Version Errich 1450C 1450

Spring Boot集成Druid异常discard long time none received connection.

为什么要清空空闲60秒以上的连接 猜测,阿里给数据库设置的数据库空闲等待时间是60秒,mysql数据库到了空闲等待时间将关闭空闲的连接,以提升数据库服务器的处理能力。 MySQL的默认空闲等待时间是8小时,就是「wait_timeout」的配置值。如果数据库主动关闭了空闲的连接,而连接池并不知道,... ......
connection received discard Spring Druid

Ubuntu连接局域网中Windows主机上的v2r报错:rejected core/proxy/socks: unknown Socks version: 67

2023/11/11 14:40:49 tcp:192.168.1.111:44776 rejected xxxx.com/core/proxy/socks: unknown Socks version: 672023/11/11 14:40:49 tcp:192.168.1.111:44810 r ......
局域网 局域 rejected 主机 Windows

服务器发送了一个意外的数据包。 received: 3, expected: 20

[root@node02 local]# vim /etc/ssh/sshd_config #最后一行添加KexAlgorithms curve25519-sha256@libssh.org,ecdh-sha2-nistp256,ecdh-sha2-nistp384,ecdh-sha2-nistp5 ......
received expected 服务器 数据 20

docker 上安装的mysql ,远程连接shell版本应该怎么设置呢,mysql5.7,但是mysq_lshell_version 8.0.25, 导致项目一直连不上,fkkkkk

这里的shell版本是8.0.35的,但是我安装的镜像 MySQL版本是5.7的,找了很久都没找到如何设置这个 shell_version 用native 测试MySQL,是连接成功的,但是代码就是连不上,后来在idea上试了,才发现这个connector是8.0.25,但是安装的是MySQL 5. ......

Electrical(Hardware) Protocols: FIFO / JTAG / SPI / IIC / IIS / UART / SWD / ICSP / CANBus/ModBus

Electrical(Hardware) Protocols: JTAG(Joint Test Action Group), JTAG is actually a protocol over SPI. 5 pins/connections(GND, TMS, TCK, TDI, TDO), Outp ......
Electrical Protocols Hardware CANBus ModBus

谷歌浏览器 ERR_SSL_PROTOCOL_ERROR

9月28日,Chromium提交了一个标题为Disable SHA1 in TLS server handshakes by default的部署,默认禁用了TLS握手时的SHA1加密方法,这本是一次正常且正确的发布,因为SHA1已经被公认为不安全的。但是却没想到有一些老旧的系统依然使用了较低版本的 ......

cf1856E2. PermuTree (hard version)(bitset+二进制优化背包+开不同大小bitset)

https://codeforces.com/contest/1856/problem/E2 结论是显然的,关键是有一些科技在里面 bitset+二进制优化 具体分析可以参考https://codeforces.com/blog/entry/98663 简而言之就是可以通过\(O(\frac{C\s ......
bitset 二进制 背包 PermuTree 大小

cf1582F2. Korney Korneevich and XOR (hard version)(暴力优化)

cf1582F2 对于每种数可以维护一个列表v[x],表示到当前位置,最后一个数小于等于x,能够取到的值,对于当前的数ai,我们可以用v[ai]中的值x与ai异或,来更新v[ai+1],v[ai+2]后面的值。 然后就是有两个优化,每次我们更新完后,都对v[a[i]]清空,因为只有两个相同数之间的数 ......
Korneevich 暴力 version Korney 1582

E1. Doremy's Drying Plan (Easy Version)

E1. Doremy's Drying Plan (Easy Version) The only differences between the two versions of this problem are the constraint on $k$, the time limit and th ......
Version Doremy Drying Plan Easy

/lib64/libz.so.1: version `ZLIB_1.2.9' not found (required by ./rmblastn)

001、问题 ./rmblastn: /lib64/libz.so.1: version `ZLIB_1.2.9' not found (required by 002、查找库中包含的版本 (base) [root@pc1 bin]# strings /lib64/libz.so.1 | grep ......
required rmblastn version found ZLIB

Go 方法集合与选择receiver类型

Go 方法集合与选择receiver类型 目录Go 方法集合与选择receiver类型一、receiver 参数类型对 Go 方法的影响二、选择 receiver 参数类型原则2.1 选择 receiver 参数类型的第一个原则2.2 选择 receiver 参数类型的第二个原则三、方法集合(Met ......
receiver 类型 方法 Go

version `GLIBC_2.34' not found (required by ./rmblastn)

001、问题如下: 002、解决方法: 003、 参考: 01、 ......
required rmblastn version GLIBC found

Received fatal alert: protocol_version

问题原因程序使用用的TLS与jdk环境TLS不一致 分析定位配置文件设置jvm启动参数 -Djavax.net.debug=all,将http请求报文打印。JAVA_OPTS=‘-Djavax.net.debug=all’ 请求时检查日志输出,程序使用TLS版本为TLSv1而jdk8中默认启用TLS ......

Docker Desktop requires a newer WSL kernel version.

问题描述: Docker Desktop requires a newer WSL kernel version. 问题截图: 问题原因:WSL不是最新版。 解决方案:适用于 Linux 的 Windows 子系统 (WSL) 可让开发人员直接在 Windows 上按原样运行 GNU/Linux 环 ......
requires Desktop version Docker kernel

CF1868B2 Candy Party (Hard Version) 题解

Problem - 1868B2 - Codeforces Candy Party (Hard Version) - 洛谷 相信大家已经看过 Simple Version ,这题和上题不同之处就在于如果 \(b_i = 2^x\) ,他可以被分解成 \(2^x\) 或 \(2^{x+1}-2^x\) ......
题解 Version 1868B Candy Party

Syntax Error: Error: Node Sass version 8.0.0 is incompatible with ^4.0.0.

依赖关系如图: 如果报如题这个错误,并且按照上面node-sass官网的依赖关系依赖对了node版本还不行,那么,请删除node-sass npm uninstall node-sass 然后执行 npm i sass --save-dev 然后运行项目,如果出现类似图片中的错误时,别慌,把所有的/ ......
Error incompatible version Syntax Node

CF1868B1 Candy Party (Easy Version) 题解

Problem - 1868B1 - Codeforces Candy Party (Easy Version) - 洛谷 喵喵题。首先每个数最终肯定变成 \(\overline a\) ,如果 \(\overline a\) 不是整数显然无解。 然后记 \(b_i=a_i-\overline a\ ......
题解 Version 1868B Candy Party