39
ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock'
今天执行mysql操作的时候出现了错误:ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock'问题 1:首先检查是否安装了mysql-server了 su ......
解决vue2.0路由 TypeError: Cannot read property 'matched' of undefined 的错误问题
找了很久这个问题 解决vue2.0路由 TypeError: Cannot read property 'matched' of undefined 的错误问题 - 北桥苏 - 博客园 (cnblogs.com) 解决办法 改为 问题解决 没有找到为什么 好像高版本的router没有这个问题 我因为 ......
Loading class `com.mysql.jdbc.Driver'. 问题
解决Loading class `com.mysql.jdbc.Driver'. This is deprecated. The new driver class is `com.mysql.cj.jdbc.Driver'. The driver is automatically registere ......
day39| 62+63
62. 不同路径 题目简述: 一个机器人位于一个 m x n 网格的左上角 (起始点在下图中标记为 “Start” )。 机器人每次只能向下或者向右移动一步。机器人试图达到网格的右下角(在下图中标记为 “Finish” )。 问总共有多少条不同的路径? 思路: 1. 到每个网格都有对应路径数 2. ......
sql语法错误[1093] You can't specify target table 'score' for update in FROM clause
不能在同一张表中将查询非结果集作为更新条件执行 将需要的结果集外层套一层自查询如 update a set a.num=a.num+1 where a.name in (select a.age from a where xx=xxx) ;报错 [1093] You can't specify ta ......
错误:为 repo 'appstream' 下载元数据失败 : Cannot prepare internal mirrorlist: No URLs in mirrorlist
yum update报错,原因是CentOS Linux 8在2022年12月31日来到生命周期终点(End of Life,EoL)。即CentOS Linux 8操作系统版本结束了生命周期(EOL),Linux社区已不再维护该操作系统版本。所以原来的CentOS Linux 8的yum源也都失效 ......
装了.Net 7.0后,工程框架用 net6 的 dotnet watch 出错临时解决方案 Could not load file or assembly 'System.Runtime,7.0.0.0
升级vs或者装了.Net 7.0后, 工程框架用 net6 的 dotnet watch 出错 ‘Unhandled exception. System.IO.FileNotFoundException: Could not load file or assembly ‘System.Runtime ......
from collections import namedtuple, MappingImportError: cannot import name 'Mapping' from 'collections' (D:\python38\Lib\collections --init__.py)
from collections import namedtuple, MappingImportError: cannot import name 'Mapping' from 'collections' (D:\python38\Lib\collections --init__.py) 出现以上 ......
{ 4, 250, 7, 39, 34, 73, 7, 56, 19, 151, 159, 71 }
{4,244,238,41,25,243,238,13,27,71,3,71} { 4, 244, 238, 143, 126, 112, 156, 172, 149, 176, 181, 157, 177, 185, 163, 151, 177, 155, 125, 123, 124, 190, ......
CentOS网卡无法启动返回'Failed to start LSB:Bring up/down networking.'
装了一台虚机,配置docker服务的时候发现忘了开CPU虚拟化,关机开启后再登录,发现网卡down了,重启网卡报错。 1. journalctl -ex #查看日志,发现返回错误'Failed to start LSB:Bring up/down networking.'; 2. vi /var/l ......
'props' is not defined.
这个错误表明在组件中,变量 props 没有被定义。通常情况下,我们需要在组件选项中指定 props,并传递它们给 setup() 函数: 'props' is not defined. export default defineComponent({ name: "message-out", pr ......
vue3 路由跳转:Cannot read properties of undefined (reading 'push')
在vue2中我们通常会在全局的接口请求里面设置拦截器,如果登录失效或者说其他情况需要跳转到登录页面或者说其他页面的,我们就使用this.$router.push实现vue3中同样使用改方式: import { useRouter } from 'vue-router'; const router = ......
关于项目组件打包时遇到 `Uncaught TypeError: Cannot read property 'toLowerCase' of undefined` 的情况
在全局注册组件时采用遍历组件池的方法时 每个组件都应该具备name属性 否则会出现 Uncaught TypeError: Cannot read property 'toLowerCase' of undefined ......
Module not found: Error: Can't resolve 'axios' in 'D:\BaiduSyncdisk\vue-cli-project\dc_vue3\src\utils'
Module not found: Error: Can't resolve 'axios' in 'D:\BaiduSyncdisk\vue-cli-project\dc_vue3\src\utils' 因:没有安装axios插件 在运行项目的地方npm install --save axios ......
40 39 | 自增主键为什么不是连续的?
在第4篇文章中,我们提到过自增主键,由于自增主键可以让主键索引尽量地保持递增顺序插入,避免了页分裂,因此索引更紧凑。 之前我见过有的业务设计依赖于自增主键的连续性,也就是说,这个设计假设自增主键是连续的。但实际上,这样的假设是错的,因为自增主键不能保证连续递增。 今天这篇文章,我们就来说说这个问题, ......
39 38 | 都说InnoDB好,那还要不要使用Memory引擎?
我在上一篇文章末尾留给你的问题是:两个group by 语句都用了order by null,为什么使用内存临时表得到的语句结果里,0这个值在最后一行;而使用磁盘临时表得到的结果里,0这个值在第一行? 今天我们就来看看,出现这个问题的原因吧。 内存表的数据组织结构 为了便于分析,我来把这个问题简化一 ......
pytorch报错 No module named 'nn'
问题描述 pytorch 报错 No module named 'nn' 如果你 import torch 没问题,而 import torch.nn时出现问题,你可能命名使用了一个名字为 torch.py 文件,由于 torch.py 文件与系统的 torch.py 文件重名,所以会触发该问题,将 ......
Error:java: JDK isn't specified for module
报错: Error:java: JDK isn't specified for module 背景: 删除原项目文件夹内所有文件,copy的新的配置文件与src文件夹等,期间打开该项目的IDEA一直处于开启状态 运行项目报错 解决: 关闭IDEA,重新打开,运行即可 ......
AttributeError: module 'lib' has no attribute 'X509_V_FLAG_CB_ISSUER_CHECK' 提示解决方案
AttributeError: module 'lib' has no attribute 'X509_V_FLAG_CB_ISSUER_CHECK' 安装gallery-dl时出的提示: 解决方法: pip uninstall pyopenssl pip uninstall gallery-dl ......
CF 1820A-Yura's New Name, 800 / 思维 / ^-^ 或 ^^ 才合法
CF 1820A-Yura's New Name 处理方式 : 特殊情况提前判断 + 一般情况从首推到尾 #include <iostream> #include <cstring> using namespace std; const int N = 1e2 + 10; typedef long ......
How Many O's? UVA - 11038
写下区间[a,b]的所有数 ,问一共有多少个 0 #include <iostream> #include <cstring> #include <vector> using namespace std; #define int long long int n,f[40][40][2][2] ; v ......
关于报错:Error adding module to project: setSdk: sdk '1.8' type 'JavaSDK' is not registered in ProjectJdkTable
问题描述: Error adding module to project: setSdk: sdk '1.8' type 'JavaSDK' is not registered in ProjectJdkTable (图片来自贴吧,看到有一个人问这个问题,然后自己碰到了但是忘了截图) 说明当前项目在 ......
papmelon 214. 萨鲁曼的军队 Saruman's Army
地址 https://www.papamelon.com/problem/214 解答 贪心算法 尽可能标记右边的点 也就是后边的点在覆盖空间的可能性更大 #include <iostream> #include <algorithm> #include <set> #include <assert ......
奇怪的 @babel/runtime 错误:Module parse failed: 'import' and 'export' may appear only with 'sourceType: module' (1:0)
错误 ERROR in ./node_modules/@babel/runtime/helpers/esm/typeof.js 1:0 Module parse failed: 'import' and 'export' may appear only with 'sourceType: modul ......
npm ERR! Unexpected token '.' 报错
win10终端,执行npm install [package]时报错, npm ERR! Unexpected token '.' 问题产生:不识别Linux格式的相对路径,如:../pathname。 问题解决:降低Node版本至16.13.2。该版本以上至最新18.4.0版本在执行包的安装时都会 ......
What's PLinq? how to use it?
What's PLinq? how to use it? PLinq stands for "Parallel LINQ", which is a parallel implementation of LINQ (Language-Integrated Query) in .NET. It allo ......
升级 .net 6后 The view 'Index' was not found. The following locations were searched
升级.net6之后Razor页面出现找不到view的情况,原因是.net6默认移除了一些依赖包,如下完美解决web工程添加包Microsoft.AspNetCore.Mvc.Razor.RuntimeCompilationstartup.cs里面加上Compilation引用builder.Serv ......
ts报错:Property '$xxx' does not exist on type
问题 在catch中统一处理异常信息,就想着写到一个函数里面,然后需要用到的地方自行调用就可以。 一般两种方法,要不通过mixin,要不绑定到vue的prototype上面。 这里采用的是后者。 在以前没引入ts之前,是那么简单的一件事情。 // 先绑定 Vue.prototype.$catchRe ......
pycharm中运行js文件出现UnicodeDecodeError: 'gbk' codec can't decode byte 0xaf in position 205: illegal multibyte sequence报错?
在做有道翻译时发现python文件中调用js文件并读取,出现了UnicodeDecodeError: 'gbk' codec can't decode byte 0xaf in position 205: illegal multibyte sequence报错。其实修改很简单,我们只需要将subp ......
Failed to execute 'toDataURL' on 'HTMLCanvasElement': Tainted canvases may not be exported 设置crossOrigin无效
最近在使用图片导出base64 的时候遇到下面的报错 我的代码如下 let myImage = new Image(); myImage.src =imgSrcData; myImage.crossOrigin = 'Anonymous'; 网上查阅资料,都说 给图片设置 crossOrigin 值 ......