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