一、问题描述 Django中执行create database charset=utf8;命令报错:ERROR 1064 (42000): You have an error in your SQL syntax; check the manual that corresponds to your ...
分类:
数据库技术 时间:
2020-07-18 11:28:24
收藏:
0 评论:
0 赞:
0 阅读:
438
JDK 1.8 版本以上(含) class Md5Pass{ private static String ss="ISMvKXpXpadDiUoOSoAfww=="; public static void main(String[] args) throws UnsupportedEncodingE ...
分类:
数据库技术 时间:
2020-07-18 11:26:52
收藏:
0 评论:
0 赞:
0 阅读:
97
一、download and upload to CentOS7 "mysql-8.0.20-1.el7.x86_64.rpm-bundle.tar" 二、install 1 [root@liuhonglei ~]# ls 2 anaconda-ks.cfg easy-mock mysql-8.0. ...
分类:
数据库技术 时间:
2020-07-18 11:24:44
收藏:
0 评论:
0 赞:
0 阅读:
1080
恢复内容开始 恢复内容开始 一条sql执行的效率因执行计划的差异而影响,经常说这条sql走索引了,那条sql 全表扫了。索引是怎么走的呢,说说我了解到的几种索引走的方式。 索引的几种扫描方式 1.Index Unique Scans 索引唯一扫描2.Index Range Scans 索引范围扫描3 ...
分类:
数据库技术 时间:
2020-07-18 11:19:56
收藏:
0 评论:
0 赞:
0 阅读:
37
1. 查看mysql用户 select User,Host,authentication_string from mysql.user; + + + + | User | Host | authentication_string | + + + + | root | localhost | | | ...
分类:
数据库技术 时间:
2020-07-18 11:19:27
收藏:
0 评论:
0 赞:
0 阅读:
43
配置 三台机器:node01、node02、node03 node01:6G+60G node02:2G+40G node03:2G+40G 组件 Cloudera Managerment Service Service Monitor:node01 Activity Monitor:node01 ...
分类:
数据库技术 时间:
2020-07-18 09:43:29
收藏:
0 评论:
0 赞:
0 阅读:
70
继Golang学习系列第三天https://www.cnblogs.com/dongguangming/p/13311198.html:数组、切片、Map、结构体、指针、函数、接口类型、channel通道,今天开始学习golang操作数据库,以PostgreSQL为例。 0. 安装PostgreSQ ...
分类:
数据库技术 时间:
2020-07-18 09:40:13
收藏:
0 评论:
0 赞:
0 阅读:
73
#Crsctl start cluster 是 11.2 新特性,crsctl strat/stop cluster 既可以管理本地 clusterware stack ,也可以管理整个集群 指定 –all 启动集群中所有节点的集群件,即启动整个集群。 -n 启动指定节点的 集群件 但是不包含 OH ...
分类:
数据库技术 时间:
2020-07-18 09:38:46
收藏:
0 评论:
0 赞:
0 阅读:
162
s https://www.cnblogs.com/silentmuh/p/9473557.html MySQL提供的group_concat函数可以拼接某个字段值成字符串,如 select group_concat(user_name) from sys_user,默认的分隔符是 逗号,即"," ...
分类:
数据库技术 时间:
2020-07-18 09:37:44
收藏:
0 评论:
0 赞:
0 阅读:
53
s mysql大小写敏感配置show global variables like '%lower_case%'; show global variables like '%lower_case%'; <pre>+ + +| Variable_name | Value |+ + +| lower_ca ...
分类:
数据库技术 时间:
2020-07-18 09:36:45
收藏:
0 评论:
0 赞:
0 阅读:
80
(1)服务器配置: [root@localhost ~]# cd /usr/local/src/ [root@localhost src]# wget http://repo.mysql.com/mysql57-community-release-el7-8.noarch.rpm [root@loc ...
分类:
数据库技术 时间:
2020-07-18 09:35:55
收藏:
0 评论:
0 赞:
0 阅读:
71
建议打开Idea,引入mysql的驱动包,跟一遍代码 <dependency> <groupId>mysql</groupId> <artifactId>mysql-connector-java</artifactId> <version>5.1.49</version> </dependency> ...
分类:
数据库技术 时间:
2020-07-18 00:54:45
收藏:
0 评论:
0 赞:
0 阅读:
55
前沿 学习了mysql的next-key-lock后,现在正式进入sort by的学习阶段。有时在项目里会用到sort by语句。我也听说sort by有可能会对mysql造成压力,所以要学习一下sort by的过程,从而才能深刻的了解自己的sort by语句对mysql的压力,避免线上性能低下或者 ...
分类:
数据库技术 时间:
2020-07-18 00:53:56
收藏:
0 评论:
0 赞:
0 阅读:
58
引用自https://www.cnblogs.com/insus/p/10905566.html 在Sql server2016版本之后的新特性中,利用For Json path 可以将表格内容转成Json字符串,有自动转化和指定格式等转换。 下面这篇中,已经有准备一些数据: 《MS SQL ser ...
分类:
数据库技术 时间:
2020-07-18 00:53:26
收藏:
0 评论:
0 赞:
0 阅读:
99
* 概念: 对表中的数据进行限定,保证数据的正确性、有效性和完整性。 * 分类: 1. 主键约束:primary key 2. 非空约束:not null 3. 唯一约束:unique 4. 外键约束:foreign key * 非空约束:not null,值不能为null 1. 创建表时添加约束 ...
分类:
数据库技术 时间:
2020-07-18 00:53:12
收藏:
0 评论:
0 赞:
0 阅读:
50
1、ADODB.RecordSet 结果集转化为 JSON 字符串 Public Function RecordSetToJSON(rs As ADODB.Recordset) As String Dim i As Integer Dim JSONstr As String JSONstr = "" ...
分类:
数据库技术 时间:
2020-07-18 00:49:37
收藏:
0 评论:
0 赞:
0 阅读:
164
mysqldump备份方式是采用逻辑备份,其最大的缺陷就是备份和恢复速度都慢,对于一个小于50G的数据库而言,这个速度还是能接受的,但如果数据库非常大,那再使用mysqldump备份就不太适合了。这时就需要一种好用又高效的工具,xtrabackup就是其中一款,号称免费版的InnoDBHotBackup。Xtrabackup实现是物理备份,而且是物理热备目前主流的有两个工具可以实现物理热备:ibb
分类:
数据库技术 时间:
2020-07-18 00:47:00
收藏:
0 评论:
0 赞:
0 阅读:
72
数据库基本语法 MySQL增:insert into 表名 (字段1,...,字段n) values (值1,...,值n) MySQL删:delete from 表名 where 条件 MySQL改:update 表名 set 键1=值1,...,键n=值n where 条件 MySQL查:sel ...
分类:
数据库技术 时间:
2020-07-17 23:24:33
收藏:
0 评论:
0 赞:
0 阅读:
90
1.创建数据库 --创建数据库 create database stuDb on primary ( --表示属于primary文件组 name='stuDb', --逻辑名称 filename='D:\Data\MSSQL\stuDb.mdf', --物理名称 size=5mb,--初始大小 ma ...
分类:
数据库技术 时间:
2020-07-17 22:46:24
收藏:
0 评论:
0 赞:
0 阅读:
75
作用: # 多表联查,联表查询 1.传统连接 1.集合 #集合 [xiaoqiu,xiaowang,qiandao] [80,90,100] #数据库 id:[1,2,3] name:[xiaoqiu,xiaowang,qiandao] id:[1,2,3] mark:[80,90,100] 2.建 ...
分类:
数据库技术 时间:
2020-07-17 22:35:54
收藏:
0 评论:
0 赞:
0 阅读:
74