- Баллы
- 93
- Имя в Minecraft
- Samar
Потому что в каждом плагине 2 настройки для бд, 1 - подключение и обмен информацией, 2 - создание таблиц и конвертация.
Пример на iConomy
Пример на iConomy
Находится в конфиге плагина начиная с 135 строчки
YAML:
Table: 'iconomy'
# URL is for SQL Databases Only
##
# Path to iConomy folder is easy, it's the COMPLETE path.
# (Mine) G:\MineCraft\plugins\iConomy\
# Won't be the same as yours, but it usually looks like that.
##
# [H2DB Default] h2:path/to/iConomy/folder/iConomy;AUTO_RECONNECT=TRUE
# [SQLite Default] sqlite:path/to/iConomy/folder/iConomy.db
##
# Binary Databases use ip:port style connections.
# ip
# - is the connection identifier (internet protocol)
# - for ipv6 usually encased in brackets [::1]
# port
# - the port that the database is listening on
# - defaults: 3306 for mysql, postgre is either 5740 or 5432
##
# [MySQL Default] mysql://localhost:3306/iConomy
# [Postgre Default] postgresql://localhost:5740/iConomy
URL: 'mysql://srv4.minecraft-hosting.ru/p369'
# Login details for binary databases
Username: 'p369'
Password: 'пароль'
Находится в конфиге плагина начиная с 162 строчки
YAML:
##############################################################
# !!! Conversion is not your database settings !!!
##############################################################
# Conversion allows you to convert your old 5.x to the new 6.x
# All is currently unused.
##############################################################
# URL is for MySQL only, H2DB doesn't use it.
##############################################################
Conversion:
# Set to True, After converting, change this back to false!
Enabled: true <--ТУТ НУЖНО ЗНАЧЕНИЕ true ДЛЯ ВКЛЮЧЕНИЯ КОНВЕРТАЦИИ ТАБЛИЦЫ
# Database Type, H2DB or MySQL
Type: 'MySQL'
# Database Table
Table: 'iconomy'
# Database URL without table at the end.
URL: 'mysql://srv4.minecraft-hosting.ru:3306'
# Username / Password
# H2DB does not use this. MySQL Only.
Username: 'p369'
Password: 'пароль'
# Unused ATM.
All: true


