当前位置:网站首页>Archery installation test
Archery installation test
2022-07-07 23:43:00 【Joyce. Du】
1、archery brief introduction
Archery by SQL Audit query platform , Designed to improve DBA Work efficiency , Support multi database SQL Go online and check , At the same time, it supports rich MySQL Operation and maintenance functions .
2、archery Installation configuration
(1) download archery Software
https://github.com/hhyo/archery/releases/
download Latest Source Code edition

(2) download docker-compose
https://github.com/docker/compose/releases
download Latest "docker-compose-linux-x86_64"

Upload the downloaded software to archery The server /usr/local/bin Next
mv docker-compose-Linux-x86_64 docker-compose
chmod 755 docker-compose
Check to see if the installation was successful :
docker-compose -version
(3) install archery
Upload and download archery To the server
unzip Archery-1.8.5.zip

The unzipped directory should have enough free space ,mysql Wait for metadata in this directory
cd Archery-1.8.5/src/docker-compose
docker-compose.yml Contains various configuration information 、 Password etc.
# start-up
docker-compose -f docker-compose.yml up -d
# Table structure initialization
docker exec -it archery bash
cd /opt/archery
source /opt/venv4archery/bin/activate
python3 manage.py makemigrations sql
python3 manage.py migrate
# Data initialization
python3 manage.py dbshell<sql/fixtures/auth_group.sql
python3 manage.py dbshell<src/init_sql/mysql_slow_query_review.sql
# Create administrative users and set passwords
python3 manage.py createsuperuser
# Restart the service
docker restart archery

(4) visit archery
archery The default port is 9123
http://172.16.80.56:9123/dashboard/

3、 To configure archery Access instance
(1) Add resource group
It is suggested that the database will be developed 、 Test database 、 The official database is divided into different resource groups , Easy to manage later
【 System management 】--【 Resource group management 】--【 add group 】

(2) Add instance
【 Instance management 】--【 The instance list 】--【 Add instance 】
MySQL example ( Need to open binlog):

oracle example ( Need to open and file ):

Whether it's oracle still mysql example , All need to be selected Resource group and Instance label , Otherwise, ordinary users cannot operate instances

(3) add group
The group here is similar to the role
【 System management 】--【 Other configuration management 】--【 Authority group management 】--【 increase Group 】Owner
Will all sql | permission Give authority to Owner Group , Save it
(4) Add users
【 System management 】--【 Other configuration management 】--【 User management 】--【 increase User management 】

Select the one you just created Owner Group

Select the resource group ( Only in this way can the instances in the resource group be operated )

Save it
(5) System settings
【 System management 】--【 Configuration item management 】--【 System settings 】
Be careful :GO_INCEPTION_HOST and BACKUP_HOST Are all archery host ,mysql Port and root Password and other configurations are visible
docker-compose.yml

Turn on 【 nailing Webhook notice 】

(6) Configure the work order approval flow
【 System management 】--【 Configuration item management 】--【 Work order approval flow configuration 】
Select the job type and resource group

4、 Common user testing sql Online application
(1)SQL to examine
【SQL to examine 】--【SQL go online 】--【+ Submit SQL】

Can be done 【SQL testing 】( No need to audit ) and 【SQL Submit 】( need DBA Users and PM User audit ), This... Can be executed after being approved SQL
(2)SQL Inquire about
【SQL Inquire about 】--【 Online query 】

边栏推荐
- Slam interview summary
- Summary of common methods of object class (September 14, 2020)
- Summary of SQL single table query 2020.7.27
- Display the server hard disk image to the browser through Servlet
- Rock-paper-scissors
- Reverse output three digit and arithmetic sequence
- B_ QuRT_ User_ Guide(39)
- Apng2gif solutions to various problems
- SAP HR 劳动合同信息 0016
- SAP HR reward and punishment information export
猜你喜欢

平衡二叉樹【AVL樹】——插入、删除
![[stm32+esp8266 connects to Tencent cloud IOT development platform 3] stm32+esp8266-01s dynamically registers devices on Tencent cloud (at instruction mode) -- with source code](/img/55/ab50ead2564498cb214d98ac5b9c3d.jpg)
[stm32+esp8266 connects to Tencent cloud IOT development platform 3] stm32+esp8266-01s dynamically registers devices on Tencent cloud (at instruction mode) -- with source code

C - linear table

二叉排序树【BST】——创建、查找、删除、输出

Flash download setup

Summary of SQL single table query 2020.7.27

UIC564-2 附录4 –阻燃防火测试:火焰的扩散

HB 5469民用飞机机舱内部非金属材料燃烧试验方法

一份假Offer如何盗走了「Axie infinity」5.4亿美元?

Benchmarking Detection Transfer Learning with Vision Transformers(2021-11)
随机推荐
go time包常用函数
C simple question one
Jisuan Ke - t3104
【汇总】看过的一些Panel与视频
Extract the file name under the folder under win
507 field D - extraterrestrial relics
C cat and dog
May day C - most
0-1 knapsack problem
codeforces每日5题(均1500)-第八天
Open source hardware small project: anxinco esp-c3f control ws2812
Take you hand in hand to build Eureka client with idea
AITM3.0005 烟雾毒性测试
MP4文件格式解析之结合实例分析
Windows set redis to start automatically
【LeetCode】20、有效的括号
SAP HR 社会工作经历 0023
Flash encryption process and implementation of esp32
Markdown
Live server usage