1、下载 Yearning 包
wget https://github.com/cookieY/Yearning/releases/download/2.3.5/Yearning-2.3.5-linux-amd64.zip
2、安装 Yearning
mv Yearning-2.3.5-linux-amd64.zip /data/tool/yearning unzip Yearning-2.3.5-linux-amd64.zip
3、填写配置文件
cd /data/tool/yearningYearning-go cat conf.toml [Mysql] Db = "Yearning" Host = "127.0.0.1" Port = "3306" Password = "xxxx" User = "root" [General] #数据库加解密key,只可更改一次。 SecretKey = "dbcjqheupqjsuwsm"
4、初始化及安装
./Yearning install
启动之前需要创建Yearning 数据库 并设置utf8b4
如要再次安装,请先把 yearning 库下所有表删除,否则重复执行无效
5、启动服务
# 默认启动 ./Yearning run # 参数启动 ./Yearning run --push "127.0.0.1" -port "8000" ./Yearning run -s -b "127.0.0.1" -port "8000" 打开浏览器 http://127.0.0.1:8000 # 默认账号/密码 admin/Yearning_admin
回滚注意事项:1,开启binlog 2.格式为 row
show master status; mysql> show variables like 'log_%'; #注意有分号 mysql> show binlog events; #只查看第一个binlog文件的内容(全部的 怎么只看部分呢) mysql> show binlog events ``in 'mysql-bin.000002'``;#查看指定binlog文件的内容 mysql> show binary logs; #获取binlog文件列表 mysql> show master status; #查看当前正在写入的binlog文件 SHOW VARIABLES LIKE 'binlog_format';
标签:binlog,show,0.1,Yearning,mysql,2.3,安装 From: https://www.cnblogs.com/JIKes/p/18008452