🐛 Fix: [后台]:修改mysql配置文件

This commit is contained in:
fanxb 2019-07-05 17:00:22 +08:00
parent e7fd5ebd41
commit 3501ee2e77
2 changed files with 5 additions and 4 deletions

View File

@ -1,4 +1,4 @@
version: "3" version: "2"
services: services:
bookmark-mysql: bookmark-mysql:
image: mysql:8.0.16 image: mysql:8.0.16
@ -15,6 +15,7 @@ services:
- ./timezone:/etc/timezone - ./timezone:/etc/timezone
environment: environment:
- MYSQL_ROOT_PASSWORD=${MYSQL_PASS} - MYSQL_ROOT_PASSWORD=${MYSQL_PASS}
- MYSQL_DATABASE=bookmark
bookmark-redis: bookmark-redis:
image: redis:3.2.10 image: redis:3.2.10
container_name: bookmark-redis container_name: bookmark-redis

View File

@ -15,11 +15,11 @@ key_buffer_size=32M
#ft_min_word_len=2 #ft_min_word_len=2
# 开启慢查询日志记录 # 开启慢查询日志记录
set global slow_query_log = on slow_query_log = 1
# 记录阈值单位s # 记录阈值单位s
set long_query_time = 0.3 long_query_time = 0.3
# 设置查询存储方式 # 设置查询存储方式
set globle log_output = table log_output = table
[mysql] [mysql]