当前位置:首页 > 技术杂谈 >

文章分类:技术杂谈

技术杂谈 centOS7 下 安装mysql8.x

第一部分 CentOS7安装mysql 1.1 安装前清理工作; 1.1.1 清理原有的mysql数据库; 使用以下命令查找出安装的mysql软件包和依赖包: rpm -pa | grep mysql 显示结果如下: mysql80-community-release-el7-……

技术杂谈 mysql的体系管理

(一)使用systemd管理mysql服务 1.源码包步骤 #编辑脚本文件 [ [emailprotected] scripts]# vim /usr/lib/systemd/system/mysqld.service [Unit] Description=MySQL Server Documentation=man:mysqld(8) Documentation=https://dev.mysq……

技术杂谈 在python操作数据库中游标的使用方法

cursor就是一个Cursor对象,这个cursor是一个实现了迭代器(def__iter__())和生成器(yield)的MySQLdb对象,这个时候cursor中还没有数据,只有等到fetchone()或fetchall()的时候才返回一个元组tup……

技术杂谈 MyBatis接口式编程(SqlSession直接调用API向接口转变)

package com.atguigu.mybatis.dao; import com.atguigu.mybatis.bean.Employee; /** * @Author 谢军帅 * @Date2019/11/11 16:16 * @Description */ public interface EmployeeMapper { /** * 根据id查员工 * @param id * @return */ public Employee……

技术杂谈 数据库学习(四)

聚合与分组 1、分组查询 select字段 from表 group by 字段; select字段,count(*) from表 group by字段; 在分组的情况下,只能够出现分组字段和聚合字段,其他的字段没有意义,会报错!!! 2、聚……

技术杂谈 flink sql

StreamTableEnvironment 该类包含sql解析、验证、优化、执行等各环节需要的元数据管理器 CatalogManager ,模块管理器(模块包含函数集、类型集、规则集) moduleManager ,用户自定义函数管理器 Fu……

技术杂谈 koa2整合mysql

引入mysql包 npm install mysql 封装mysql 创建mysql.js文件放在utils(工具包)中 使用pool连接池 mysql.js //封装mysqlconst mysql = require('mysql')let pools = {}//连接池let query = (sql, callback, host = '127.0.0.1')……

技术杂谈 Mongodb 吃屎记录

使用service start mongodb systemctl mongodb start 配置文件中写入fork = true 并且输入命令sudo mongod -f ./mongodb.conf,百分百报错: about to fork child process, waiting until server is ready for connections. forked pro……

技术杂谈 报错:shell-init: error retrieving current directory: getcwd: c

[ [emailprotected] php]# /etc/init.d/httpd restart shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory 该错误表示 getcwd 命令无法定位到当前工作目录。一般来说……

技术杂谈 Oracle海量数据(1000w )重复数据删除方法

方法1:delete from xxx(表名) where rowid not in( select max/min(rowid) from xxx(表名) group by xxx(需要去重的列名,可以跟逗号实现多个列名去重))。 此方法采用直接删除的方法。但是效率比较低,数……