🐛 Fix: [后台]:修改mysql配置文件
This commit is contained in:
parent
e7fd5ebd41
commit
3501ee2e77
@ -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
|
||||||
|
@ -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]
|
||||||
|
Loading…
x
Reference in New Issue
Block a user