MySQL报错:Cannot add or update a child row: a foreign key constraint fails 原因及解决方法 前几天增加了数据库中几张表的外键,结果调试接口的时候就报Cannot add or update a child row: a forei ...
分类:
数据库 时间:
2020-06-24 11:44:22
阅读次数:
59
1、概览 当多线程帮助我们提高应用性能的同时,它同时也带来一些问题,本文我们将借助几个小例子看下两个问题,死锁和活锁。 2、死锁 2.1、什么是死锁 死锁发生在当两个或多个线程一直在等待另一个线程持有的锁或资源的时候。这会导致一个程序可能会被拖垮或者直接挂掉,因为线程们都不能继续工作了。 经典的哲学 ...
分类:
编程语言 时间:
2020-06-24 00:24:55
阅读次数:
92
Linux: netstat -anp|grep 端口号 Windows: netstat –ano|findstr 端口号 ...
分类:
Web程序 时间:
2020-06-23 15:40:32
阅读次数:
46
1.nav一块,内容一块 // 第一个tab切换 $('.QQnav li').click(function(){ $(this).addClass('on').siblings().removeClass('on').parents('ul').next().find('.QQ').eq($(th ...
分类:
其他好文 时间:
2020-06-23 15:15:17
阅读次数:
64
sherrysack关注 2017.10.24 13:02:25字数 76阅读 2,394 While I was trying to download wine1.7 on Ubuntu, after I add the related repository, and execute sudo a ...
分类:
Web程序 时间:
2020-06-23 13:44:59
阅读次数:
82
find命令在目录结构中搜索文件,并执行指定的操作。Linux下find命令提供了相当多的查找条件,功能很强大。由于find具有强大的功能,所以它的选项也很多,其中大部分选项都值得我们花时间来了解一下。 ...
分类:
系统相关 时间:
2020-06-23 13:00:15
阅读次数:
60
Linux基础命令:1、ls命令用于显示指定目录下的内容主要参数:-l:列出目录或文件的详细信息(包括权限、属主、属组、文件大小、更新日期等)-a:列出隐藏文件或目录-h:自匹配文件大小(以K、M、G为单位显示)2、cd命令切换目录主要参数:cd什么都不加:切到用户家目录cd..:切到上一级目录cd-:切到上次所在目录3、pwd命令显示当前路径4、mv命令剪切,同路径表示改名5、rm命令删除文件或
分类:
系统相关 时间:
2020-06-23 10:34:57
阅读次数:
93
I am looking to buy best Star Diagnostic tool with dts monaco and vediamo, but there are a few options. Please look at this table, you will find these ...
分类:
其他好文 时间:
2020-06-23 10:28:58
阅读次数:
78
1098 Insertion or Heap Sort (25分) According to Wikipedia: Insertion sort iterates, consuming one input element each repetition, and growing a sorted o ...
分类:
编程语言 时间:
2020-06-22 22:53:13
阅读次数:
61
MySQL-错误:2059-Authentication plugin 'caching_sha2_password' cannot be loaded 一 现象 使用docker镜像创建容器后,mysql测试连接不成功 二 原因 网上查询得到原因:在mysql8之前的版本中加密规则为mysql_n ...
分类:
数据库 时间:
2020-06-22 22:42:23
阅读次数:
130