上一页 1 ··· 12 13 14 15 16 17 18 19 20 ··· 34 下一页

2019年2月14日

MySQL 中的变量:系统变量(包括:会话变量、全局变量)、用户变量(包括:局部变量、用户变量)

摘要: 出处:https://www.cnblogs.com/Brambling/p/9259375.html 阅读全文

posted @ 2019-02-14 17:17 cag2050 阅读(1865) 评论(0) 推荐(0)

MySQL 有用的查询语句

摘要: 查看指定数据库 db_name 的字符集和排序规则 显示索引信息:`SHOW INDEX FROM table_name\G` 阅读全文

posted @ 2019-02-14 17:06 cag2050 阅读(113) 评论(0) 推荐(0)

MySQL 遇到错误集锦

摘要: MySQL 规定:varchar必须指定长度,否则报错:ERROR 1064 (42000) 只有一列时,primary key 直接写在这一列的后面; 没有定义主键时,提示错误:ERROR 1075 (42000): Incorrect table definition; there can be 阅读全文

posted @ 2019-02-14 16:59 cag2050 阅读(118) 评论(0) 推荐(0)

2019年2月13日

VARCHAR(N)类型,utf8编码,则N最大值为多少,n表示什么?

摘要: 4.0版本以下,varchar(20),指的是20字节,如果存放UTF8汉字时,只能存6个(每个汉字3字节) 5.0版本以上,varchar(20),指的是20字符,无论存放的是数字、字母还是UTF8汉字(每个汉字3字节),都可以存放20个,最大大小是65532字节 1、限制规则 a) 存储限制 需 阅读全文

posted @ 2019-02-13 17:07 cag2050 阅读(233) 评论(0) 推荐(0)

MySQL 的严格模式

摘要: 待补充 阅读全文

posted @ 2019-02-13 15:53 cag2050 阅读(111) 评论(0) 推荐(0)

MySQL 的数据类型,有哪些?

摘要: MySQL数据类型选择指南:https://www.awaimai.com/1146.html 实数: 数据类型 多少个字节 范围(有符号) 范围(无符号) 默认值可设置为 是否必须指定 length TINYINT 1 (-128,127) (0,255) '0' 可指定 length SMALL 阅读全文

posted @ 2019-02-13 10:59 cag2050 阅读(176) 评论(0) 推荐(0)

2019年2月11日

Netty 学习资料

摘要: Netty 学习资料 Netty 学习资料 | 链接网址 | 说明 | | Netty 4.x 用户指南 | http://wiki.jikexueyuan.com/project/netty 4 user guide/ | Netty教程(易百教程) | http://www.yiibai.com 阅读全文

posted @ 2019-02-11 18:19 cag2050 阅读(269) 评论(0) 推荐(0)

《跟闪电侠学Netty》开篇:Netty是什么?

摘要: 出处:https://www.jianshu.com/p/a4e03835921a 阅读全文

posted @ 2019-02-11 17:54 cag2050 阅读(965) 评论(0) 推荐(0)

docker save/load、export/import 区别

摘要: 区别: 1. save的对象是image,产生的文件需要用load来生成image; 2. export的对象是container,产生的文件需要用import来生成image。 阅读全文

posted @ 2019-02-11 15:11 cag2050 阅读(493) 评论(0) 推荐(0)

2019年1月30日

supervisorctl 常用命令

摘要: 命令官方文档:http://supervisord.org/running.html running supervisorctl supervisorctl 常用命令: supervisorctl 常用命令 | 说明 | supervisorctl c /etc/supervisor/supervi 阅读全文

posted @ 2019-01-30 15:57 cag2050 阅读(1196) 评论(0) 推荐(0)

supervisord 知识点

摘要: 官方英文: Supervisor: A Process Control System Supervisor: 一个进程管理系统。 Supervisor is a client/server system that allows its users to monitor and control a n 阅读全文

posted @ 2019-01-30 15:52 cag2050 阅读(252) 评论(0) 推荐(0)

kafka 中的术语

摘要: 出处:https://tech.meituan.com/2015/01/13/kafka fs design theory.html table th:first of type { width: 70px; } kafka 中的术语 | 解释 | broker | topic | partitio 阅读全文

posted @ 2019-01-30 10:51 cag2050 阅读(369) 评论(0) 推荐(0)

Kafka 三款监控工具比较

摘要: 出处:https://blog.csdn.net/chuntian_feng/article/details/51871648 阅读全文

posted @ 2019-01-30 10:44 cag2050 阅读(426) 评论(0) 推荐(0)

2019年1月29日

Kafka 文件存储机制那些事 - 美团技术团队

摘要: 出处:https://tech.meituan.com/2015/01/13/kafka fs design theory.html 自己总结: Kafka 文件存储机制_结构图:https://www.processon.com/view/link/5c514944e4b08a7683b9be81 阅读全文

posted @ 2019-01-29 20:27 cag2050 阅读(684) 评论(0) 推荐(0)

kafka 知识点

摘要: Replica如何分布 为了尽量做好负载均衡和容错能力,需要将同一个Partition的Replica尽量分散到不同的机器。如果所有的Replica都在同一个Broker上,那一旦该Broker宕机,该Partition的所有Replica都无法工作,那么这些Replica也就失去的意义。 Repl 阅读全文

posted @ 2019-01-29 20:12 cag2050 阅读(171) 评论(0) 推荐(0)

kafka 学习资料

摘要: kafka 学习资料 | 网址 | kafka 中文教程 | http://orchome.com/kafka/index 在Docker环境下部署Kafka | http://lanxinglan.cn/2017/10/18/%E5%9C%A8Docker%E7%8E%AF%E5%A2%83%E4 阅读全文

posted @ 2019-01-29 19:24 cag2050 阅读(131) 评论(0) 推荐(0)

kafka 的 docker 镜像使用

摘要: 镜像 | 网址 | landoop/fast data dev 镜像的使用(推荐使用此镜像) | https://hub.docker.com/r/landoop/fast data dev , https://www.jianshu.com/p/daea2db9cceb 使用Docker快速搭建K 阅读全文

posted @ 2019-01-29 17:28 cag2050 阅读(914) 评论(0) 推荐(0)

SpringBoot 使用 Mybatis 注解进行一对多和多对多查询(不推荐使用注解方式)

摘要: 出处:https://blog.csdn.net/KingBoyWorld/article/details/78966789 阅读全文

posted @ 2019-01-29 15:04 cag2050 阅读(238) 评论(0) 推荐(0)

2019年1月28日

MySQL 中 utf8 和 utf8mb4 的使用以及字符集相关(原文优秀,必读)

摘要: MySQL 在 5.5.3 之后 (查看版本:select version();) 增加了这个utf8mb4的编码,mb4 就是 most bytes 4 的意思,支持的字节数最大为 4,即专门用来兼容四字节的 unicode。 对于 CHAR 类型数据,utf8mb4 会多消耗一些空间,根据 My 阅读全文

posted @ 2019-01-28 17:00 cag2050 阅读(837) 评论(0) 推荐(0)

MYSQL 中的 int(11) 到底代表什么意思?

摘要: 各 INT 类型无符号最大值用单位表示: INT 类型 | 无符号最大值用单位表示 | TINYINT | 255 SMALLINT | 65535 MEDIUMINT | 1677 万 INT | 42 亿 BIGINT | 1844 亿亿,18446兆(一万亿等于一兆,亿亿就是:十兆;) int 阅读全文

posted @ 2019-01-28 15:25 cag2050 阅读(1247) 评论(0) 推荐(0)

MyBatis 学习资料

摘要: MyBatis 学习资料 table th:first of type { width: 90px; } table th:nth of type(2) { } table th:nth of type(3) { width: 400px; } 知识 | 链接网址 | 说明 | | MyBatis 阅读全文

posted @ 2019-01-28 10:28 cag2050 阅读(441) 评论(0) 推荐(0)

2019年1月24日

什么是 CAP 理论?

摘要: 出处:https://mp.weixin.qq.com/s?__biz=MzU3MTQwNDEyMg==&mid=2247483680&idx=1&sn=a844dc83df3316ac0102ea11511b8b46&chksm=fce1fb15cb9672032e98857a74f4e971a1 阅读全文

posted @ 2019-01-24 19:37 cag2050 阅读(115) 评论(0) 推荐(0)

一致性哈希算法原理

摘要: 出处:https://www.cnblogs.com/lpfuture/p/5796398.html 阅读全文

posted @ 2019-01-24 19:16 cag2050 阅读(104) 评论(0) 推荐(0)

SELECT 语句语法

摘要: mysql 终端下,使用 命令查看。 阅读全文

posted @ 2019-01-24 18:00 cag2050 阅读(160) 评论(0) 推荐(0)

MySQL中如何实现 select top n

摘要: mysql 没有 top n 语法,mysql 用 limit 来实现相关功能,而且功能更加强大。 语法: `SELECT FROM table LIMIT [offset,] rows | rows OFFSET offset` 阅读全文

posted @ 2019-01-24 17:58 cag2050 阅读(217) 评论(0) 推荐(0)

基于 debian:stretch-slim 系统镜像的 docker 镜像,安装 curl

摘要: 依次运行如下命令: 1. 2. `apt get install curl` 阅读全文

posted @ 2019-01-24 17:07 cag2050 阅读(1084) 评论(0) 推荐(0)

Linux 操作系统下,安装软件 apt-get、yum 的区别

摘要: Linux 操作系统主要分为两大类: 1. RedHat系列:Redhat、Centos、Fedora等; 2. Debian系列:Debian、Ubuntu等。 yum(Yellow dog Updater, Modified)是 RedHat 系列 Linux 操作系统下的软件安装方式。 apt 阅读全文

posted @ 2019-01-24 16:44 cag2050 阅读(187) 评论(0) 推荐(0)

mysql 的 help 命令:每个命令,都有相应的反斜杠(\)加一个字母或字符的简写

摘要: ``` mysql help For information about MySQL products and services, visit: http://www.mysql.com/ For developer information, including the MySQL Referenc 阅读全文

posted @ 2019-01-24 11:40 cag2050 阅读(328) 评论(0) 推荐(0)

2019年1月23日

CommonJS 规范中的 module、module.exports 区别

摘要: CommonJS 规范中的 module、module.exports 区别 CommonJS规范规定,每个模块内部,module变量代表当前模块。这个变量是一个对象,它的exports属性(即module.exports)是对外的接口。加载某个模块,其实是加载该模块的module.exports属 阅读全文

posted @ 2019-01-23 15:54 cag2050 阅读(177) 评论(0) 推荐(0)

2019年1月22日

COLUMN_FORMAT 的值:FIXED、DYNAMIC、DEFAULT 的区别(待补充)

摘要: 参考===MySQL 建表语句 create table 中的列定义: 阅读全文

posted @ 2019-01-22 20:47 cag2050 阅读(409) 评论(0) 推荐(0)

MySQL 建表语句 create table 中的列定义

摘要: MySQL 建表语句 create table 中的列定义: 可通过sql命令查看:help create table; 阅读全文

posted @ 2019-01-22 20:23 cag2050 阅读(363) 评论(0) 推荐(0)

MySQL 中的反引号(`):是为了区分 MySql 关键字与普通字符而引入的符号;一般,表名与字段名都使用反引号。

摘要: MySQL 中的反引号(`):是为了区分 MySql 关键字与普通字符而引入的符号;一般,表名与字段名都使用反引号。 阅读全文

posted @ 2019-01-22 20:10 cag2050 阅读(1516) 评论(0) 推荐(0)

3个问题:MySQL 中 character set 与 collation 的理解;utf8_general_ci 与 utf8_unicode_ci 区别;uft8mb4 默认collation:utf8mb4_0900_ai_ci 的含义

摘要: MySQL 中 character set 与 collation 的理解 出处:https://www.cnblogs.com/EasonJim/p/8128196.html 推荐: 1. 编码使用 uft8mb4,不使用 utf8(utf8会有一些问题) utf8_general_ci 与 ut 阅读全文

posted @ 2019-01-22 19:59 cag2050 阅读(2473) 评论(0) 推荐(0)

MySQL 中,\g和\G的作用

摘要: MySQL 中,\g和\G的作用: 1. \g 的作用是 2. \G 的作用是将查询到的结果,每行显示一个字段和字段值,方便查看 详情可以在 mysql 终端,输入 命令查看。 阅读全文

posted @ 2019-01-22 17:56 cag2050 阅读(496) 评论(0) 推荐(0)

“更新时间”字段的:ON UPDATE CURRENT_TIMESTAMP 含义

摘要: “更新时间”字段的:ON UPDATE CURRENT_TIMESTAMP 含义: 表示在数据库数据有更新的时候UPDATE_TIME的时间会自动更新(如果数据库数据值没有变化的话,UPDATE_TIME是不会自动更新的)。 CREATE TABLE ( int(11) unsigned NOT N 阅读全文

posted @ 2019-01-22 17:37 cag2050 阅读(1616) 评论(0) 推荐(0)

MySQL 建表时的 ROW_FORMAT 参数,值类型:DEFAULT、DYNAMIC、FIXED、COMPRESSED、REDUNDANT、COMPACT(待补充)

摘要: 待补充 阅读全文

posted @ 2019-01-22 16:46 cag2050 阅读(482) 评论(0) 推荐(0)

MySQL 数据类型对比:char 与 varchar;varchar 与 text;datetime 与 timestamp;blob 与 text;

摘要: char 与 varchar 1. char(n) 若存入字符数小于n,则以空格补于其后,查询之时再将空格去掉。所以 char 类型存储的字符串末尾不能有空格,varchar 不限于此。 2. char(n) 固定长度,char(4) 不管是存入几个字符,都将占用 4 个字节;varchar 是存入 阅读全文

posted @ 2019-01-22 16:27 cag2050 阅读(200) 评论(0) 推荐(0)

MySQL 建表时的 ENGINE 参数,有几个值?

摘要: 待补充 阅读全文

posted @ 2019-01-22 16:26 cag2050 阅读(162) 评论(0) 推荐(0)

mysql 的 docker 镜像使用

摘要: 1.镜像地址:https://hub.docker.com/_/mysql 2.下载镜像: 3.创建一个 mysql 容器 4.查看 mysql 容器的相关信息 5.进入创建的 mysql 容器的 bash 6.进入 mysql 命令行,会提示输入 root 用户的密码(即第2步骤配置的:root) 阅读全文

posted @ 2019-01-22 15:15 cag2050 阅读(176) 评论(0) 推荐(0)

2019年1月19日

MySQL 学习资料

摘要: MySQL 学习资料: MySQL 学习资料 | 网址 | MySQL 教程(菜鸟教程) | http://www.runoob.com/mysql/mysql tutorial.html MySQL 教程(极客学院)| http://wiki.jikexueyuan.com/project/mys 阅读全文

posted @ 2019-01-19 11:27 cag2050 阅读(133) 评论(0) 推荐(0)

上一页 1 ··· 12 13 14 15 16 17 18 19 20 ··· 34 下一页

导航