1
mirror of https://github.com/CarmJos/MineSQL.git synced 2024-09-19 20:25:45 +00:00
MineSQL/.doc/example-config.yml

41 lines
1.9 KiB
YAML
Raw Permalink Normal View History

2022-02-22 19:41:08 +00:00
version: ${project.version} #配置文件版本,若与插件版本不同请记得检查配置文件内容
debug: false
# 统计数据设定
# 改选项用于帮助开发者统计插件版本与使用情况,且绝不会影响性能与使用体验。
# 当然您也可以选择在这里关闭或在plugins/bStats下的配置文件中关闭。
metrics: true
2022-02-09 18:36:03 +00:00
# 检查更新设定
# 该选项用于插件判断是否要检查更新,若您不希望插件检查更新并提示您,可以选择关闭。
# 检查更新为异步操作,绝不会影响性能与使用体验。
check-update: true
2022-02-22 19:41:08 +00:00
# 启用 Properties 文件配置
# 相关配置介绍(BeeCP) https://github.com/Chris2018998/BeeCP/wiki/Configuration--List#配置列表
properties:
2022-02-22 19:41:08 +00:00
# 该选项用于启用 Properties 配置读取,若您不希望插件启用 Properties 文件配置,可以选择关闭。
enable: true
2022-02-22 19:41:08 +00:00
# 文件夹路径,将读取该文件夹下的所有 .properties 文件,并以文件名为数据管理器名称。
# 读取时,将排除以 “.” 开头的文件与非 .properties 文件。
# 默认为 "db-properties/" 相对路径指向“plugins/MineSQL/db-properties/”;
2022-02-22 19:41:08 +00:00
# 该选项也支持绝对路径,但使用绝对路径时,请务必注意权限问题。
folder: "db-properties/"
2022-02-09 18:36:03 +00:00
2022-02-22 21:00:48 +00:00
# 数据库源配置
# 目前支持的驱动类型(driver-type)有 mariadb、mysql 与 h2(文件数据库) 。
databases:
"example-mariadb": # 数据库源名称 不可包含“.” 以“example-”开头的数据源不会被加载
type: mariadb # MySQL / MariaDB 类型
2022-02-22 21:00:48 +00:00
host: 127.0.0.1 # 数据库地址
port: 3306 # 数据库端口
username: minecraft # 数据库用户名
password: password #数据库连接密码
2022-02-22 21:00:48 +00:00
database: minecraft #数据库名
"example-h2":
type: h2-file
file: "example.db" #数据库文件路径相对于“plugins/MineSQL/db-files/”