提交
This commit is contained in:
parent
9f516fb205
commit
322b19d33e
@ -1287,9 +1287,31 @@ echo $SHELL
|
||||
|
||||
### 主题
|
||||
|
||||
- Powerlevel10K
|
||||
#### Powerlevel10K
|
||||
|
||||
```shell
|
||||
|
||||
```
|
||||
|
||||
安装Nerd Fonts
|
||||
|
||||
```shell
|
||||
unzip nerd-fonts.zip
|
||||
|
||||
```
|
||||
|
||||
运行install.sh提示/usr/bin/env: ‘bash\r’: No such file or directory
|
||||
|
||||
```shell
|
||||
vim install.sh
|
||||
|
||||
:set ff
|
||||
# 可以看到fileformat=dos
|
||||
|
||||
:set ff=unix
|
||||
:set ff
|
||||
# 可以看到fileformat=unix 即保存成功
|
||||
:wq
|
||||
```
|
||||
|
||||
|
||||
|
||||
@ -484,6 +484,40 @@ start slave;
|
||||
|
||||
就是server-id 没有配置成功的原因,需要重新修改配置文件,复制配置文件到容器里面,然后重启就ok
|
||||
|
||||
# 二进制日志文件(binlog)
|
||||
|
||||
## 查看是否开启
|
||||
|
||||
```mysql
|
||||
SHOW VARIABLES LIKE 'log_bin';
|
||||
```
|
||||
|
||||
## 配置
|
||||
|
||||
```mysql
|
||||
[mysqld]
|
||||
# 开启binlog
|
||||
log_bin=ON
|
||||
# binlog日志的基本文件名
|
||||
#log_bin_basename=/var/lib/mysql/mysql-bin
|
||||
# binlog文件的索引文件, 管理所有binlog文件
|
||||
#log_bin_index=/var/lib/mysql/mysql-bin.index
|
||||
# 配置serverid
|
||||
server-id=1
|
||||
# 设置日志三种格式: STATEMENT、ROW、MIXED。
|
||||
binlog_format=mixed
|
||||
# 设置binlog清理时间
|
||||
expire_logs_days=15
|
||||
# binlog每个日志文件大小
|
||||
max_binlog_size=100m
|
||||
# binlog缓存大小
|
||||
binlog_cache_size=4m
|
||||
# 最大binlog缓存大小
|
||||
max_binlog_cache_size=512m
|
||||
```
|
||||
|
||||
|
||||
|
||||
# MyCat 2
|
||||
|
||||
## 安装
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user