yearning简介

Yearning MYSQL SQL语句审核平台。提供查询审计,SQL审核等多种功能

环境准备

centos7.4+mysql5.7.29

yearning安装

下载地址:
https://github.com/cookieY/Yearning/releases
配置方式
[[email protected] opt]# unzip Yearning-2.2.2-4kstars.linux-amd64-patch-1.zip ^C
[[email protected] opt]# cd Yearning-go/
[[email protected] Yearning-go]# cat conf.toml
[Mysql]
Db = “Yearning”
Host = “192.168.1.99”
Port = “3306”
Password = “Wtestr#1234”
User = “test”

[General]
SecretKey = “dbcjqheupqjsuwsm”
Hours = 4
说明:数据库必须是5.7以上版本且字符集应为UTF8mb4
yearning帮助命令
[[email protected] Yearning-go]# ./Yearning -h
version: Yearning/2.2.2 GENERAL author: HenryYee
Usage: Yearning [-m migrate] [-p port] [-s start] [-b web-bind] [-h help] [-c config file]

Options:
-s 启动Yearning
-m 数据初始化(第一次安装时执行)
-p 端口
-b 钉钉/邮件推送时显示的平台地址
-x 表结构修复,升级时可以操作。如出现错误可直接忽略。
-h 帮助
-c 配置文件路径
-k 用户权限变更为权限组(2.1.7以下升级至2.1.7及以上使用)
-f 初始化Admin用户密码
初始化数据结构
./Yearning -m
请务必在-s启动前首先执行-m 初始化操作!
初识mysql SQL语句审核开源软件yearning
启动yearning
[[email protected] Yearning-go]# ./Yearning -s -b “192.168.1.99” -p “8088”

yearning初貌

初识mysql SQL语句审核开源软件yearning
初识mysql SQL语句审核开源软件yearning

安装遇到的问题

数据库版本不对, 导致yearning所须表结构初始化失败
初识mysql SQL语句审核开源软件yearning
原因:使用了mysql5.6.46版本的数据库,换成5.7及以上的就可以了。

yearning参考文档

https://guide.yearning.io/

相关文章:

  • 2021-12-04
  • 2022-12-23
  • 2022-12-23
  • 2022-03-05
  • 2021-06-17
  • 2022-12-23
  • 2022-12-23
  • 2021-06-06
猜你喜欢
  • 2021-10-25
  • 2021-06-17
  • 2021-08-16
  • 2022-12-23
  • 2021-10-30
  • 2021-06-09
  • 2021-05-30
相关资源
相似解决方案