问题:发现存在一张表中存在相同的两行数据 得到:仅仅保留一行数据 方法: 原理-我们通过 1 select count (字段1,字段2) from 表1; 2 3 结果 200条数据 4 5 select count (distinct 字段1,字段2) from 表1; 6 7 结果 100条数 ...
分类:
数据库 时间:
2020-04-08 09:54:03
阅读次数:
487
1、为DVD创建一个挂载目录 mkdir -p /iso/centos7 2、在Linux下挂载CentOS DVD mount -t auto /dev/cdrom /iso/centos7 3、修改配置文件 cd /etc/yum.repos.d/ 禁用其他更新模式 mkdir bak mv * ...
分类:
其他好文 时间:
2020-04-06 15:23:46
阅读次数:
80
-bash-4.2$ cd $PGDATA -bash-4.2$ ls base pg_commit_ts pg_logical pg_serial pg_subtrans pg_wal postmaster.opts current_logfiles pg_dynshmem pg_multixac ...
分类:
其他好文 时间:
2020-04-05 11:49:41
阅读次数:
73
一、安装解压 cd / mkdir node cd nginx wget https://nodejs.org/dist/v12.16.1/node v12.16.1 linux x64.tar.xz //https://npm.taobao.org/mirrors/node/v12.16.1/no ...
分类:
Web程序 时间:
2020-04-04 13:07:01
阅读次数:
87
织梦重新安装,需要删除哪个文件 1、需要删除install目录下的install_lock.txt 2、同时还得将index.php.bak和module-install.php.bak重命名为index.php和module-install.php 3、然后使用 http://你的域名/insta ...
分类:
其他好文 时间:
2020-03-31 01:00:58
阅读次数:
346
首先保存原始源文件 # apt-get配置文件所在的目录为/etc/apt 首先先备份 cd /etc/apt sudo cp sources.list sources.list.bak vim sources.list # 将原内容删除,替换为新的配置内容 # 更新源,使配置生效 sudo apt ...
分类:
系统相关 时间:
2020-03-28 16:13:18
阅读次数:
87
第一步 在 "清华大学开源镜像站" 找到自己的linux系统版本 我的是Ubuntu 18.04LTS: 第二步 apt get配置文件所在的目录为/etc/apt,故先进入目录,然后对原配置文件进行一份备份:sudo cp sources.list sources.list.bak,以防丢失。最后 ...
分类:
系统相关 时间:
2020-03-27 13:09:54
阅读次数:
315
查看文件的时间属性的命令 stat 1.txt_bak atime:文件的内容被访问的时间(access time)。当“该文件的内容被取用”时,就会更新这个读取时间。ctime:改变权限或者属性时的时间(status time、或者change time)。mtime:内容变更时间(modific ...
分类:
系统相关 时间:
2020-03-22 17:28:41
阅读次数:
98
centos7.5-64mysql5.7xtrabackup2.4按照相关文档和资料在centos7上安装了xtrabackup,然后依照命令进行备份报错:[root@host7~]#innobackupex--default-file=/etc/my.cnf--user=root--password=111111--host=localhost/Data/bak_db/…………InnoDB:Op
分类:
数据库 时间:
2020-03-20 11:03:38
阅读次数:
71
常用备份文件名: www.zip bak文件 在使用vim时会创建临时缓存文件,关闭vim时缓存文件则会被删除,当vim异常退出后,因为未处理缓存文件,导致可以通过缓存文件恢复原始文件内容 以 index.php 为例:第一次产生的交换文件名为 再次意外退出后,将会产生名为 的交换文件 第三次产生的 ...
分类:
其他好文 时间:
2020-03-18 23:29:48
阅读次数:
109