zoukankan      html  css  js  c++  java
  • mysql自动化审核工具Yearning

    mysql自动化审核工具Yearning


    cd /opt/
    wget https://github-production-release-asset-2e65be.s3.amazonaws.com/107417113/fbcc5180-021d-11ea-9b24-89d020123546?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=AKIAIWNJYAX4CSVEH53A%2F20191108%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20191108T061344Z&X-Amz-Expires=300&X-Amz-Signature=3d9d6b35528ba5a2e4645d7fe8781511fa2f10d44be3e2634b5af203dd4076a2&X-Amz-SignedHeaders=host&actor_id=0&response-content-disposition=attachment%3B%20filename%3DYearning-2.1.6.linux-amd64.zip&response-content-type=application%2Foctet-stream
    unzip Yearning-2.1.6.linux-amd64.zip
    cat conf.toml
    cd Yearning-go/
    [Mysql]
    Db = "Yearning"
    Host = "127.0.0.1"
    Port = "3306"
    Password = "fcfmTbRw1tz2x5L5"
    User = "year"

    [General]   #数据库加解密key,只可更改一次。
    SecretKey = "cehjqsekpqjsuwsc"

    # 数据库中需要预先创建这个库名

    mysql> create database Yearning;
    mysql> create user 'year'@'%' identified WITH mysql_native_password by 'fcfmTbRw1tz2x5L5' PASSWORD EXPIRE NEVER ;
    mysql> grant all privileges on *.* to 'year'@'%';
    mysql> create user 'year'@'127.0.0.1' identified WITH mysql_native_password by 'fcfmTbRw1tz2x5L5' PASSWORD EXPIRE NEVER ;
    mysql>  grant all privileges on *.*  to 'year'@'127.0.0.1';


    关于SecretKey
    SecretKey是token/数据库密码加密/解密的salt。

    建议所有用户在初次安装Yearning之前将SecretKey更改(不更改将存在安全风险)

    格式: 大小写字母均可, 长度必须为16位

    特别注意:

    此key仅可在初次安装时更改!之后不可再次更改!如再次更改会导致之前已存放的数据源密码无法解密,最终导致无法获取相关数据源信息

    使用帮助
    ./Yearning -h

    2.初始化数据结构
    ./Yearning -m

    初始化成功!
     用户名: admin
    密码:Yearning_admin
    [root@bj-db-manage Yearning-go]#

    如要再次初始化,请先把yearning表删除,否则重复执行无效

    3.启动服务
    默认启动

    ./Yearning -s &
    参数启动

    ./Yearning -s -b "172.27.80.35" -p "8000"

    打开浏览器 http://172.27.80.35:8000

    默认密码:admin/Yearning_admin


  • 相关阅读:
    地区列表
    storyboard
    快捷键2
    关于本地缓存
    深入浅出Cocoa之消息
    ARC和Non-ARC下的单例模式
    runloop原理介绍
    ARC内存管理机制详解
    解决UITableViewCell separator左侧不贴边
    UICollectionView的使用
  • 原文地址:https://www.cnblogs.com/bjx2020/p/11820502.html
Copyright © 2011-2022 走看看