🐛 Fix: [后台]:修改mysql配置文件
This commit is contained in:
parent
e7fd5ebd41
commit
3501ee2e77
@ -1,4 +1,4 @@
|
||||
version: "3"
|
||||
version: "2"
|
||||
services:
|
||||
bookmark-mysql:
|
||||
image: mysql:8.0.16
|
||||
@ -15,6 +15,7 @@ services:
|
||||
- ./timezone:/etc/timezone
|
||||
environment:
|
||||
- MYSQL_ROOT_PASSWORD=${MYSQL_PASS}
|
||||
- MYSQL_DATABASE=bookmark
|
||||
bookmark-redis:
|
||||
image: redis:3.2.10
|
||||
container_name: bookmark-redis
|
||||
|
@ -15,11 +15,11 @@ key_buffer_size=32M
|
||||
#ft_min_word_len=2
|
||||
|
||||
# 开启慢查询日志记录
|
||||
set global slow_query_log = on
|
||||
slow_query_log = 1
|
||||
# 记录阈值,单位s
|
||||
set long_query_time = 0.3
|
||||
long_query_time = 0.3
|
||||
# 设置查询存储方式
|
||||
set globle log_output = table
|
||||
log_output = table
|
||||
|
||||
|
||||
[mysql]
|
||||
|
Loading…
x
Reference in New Issue
Block a user