Bukkit.yml - database

Pokec o čemkoliv ostatním
Message
Autor
Uživatelský avatar
ungurof
Příspěvky: 346
Registrován: 25 zář 2015, 20:44
Reputation: 0

Bukkit.yml - database

#1 Příspěvekod ungurof » 26 pro 2015, 13:15

Ahoj,
Vysvětlil by mi někdo tohle? Nešel jsem to na http://wiki.bukkit.org/ a nevím co to je. Ani jsem tomu moc nerozuměl.

database
This section lets you set various database-related configuration options, for the database which will be shared by plugins that use the internal eBeans server. Most plugins do not use this, so whether or not you need to configure it is up to you. Changing these properties will change how all plugins that use the eBeans server integrated with Bukkit connect to their database.

username: (string) Username to connect to database. May be ignored depending on driver.
password: (string) Password to connect to database. May be ignored depending on driver.
isolation: (one of SERIALIZABLE, ...) Generally leave this alone unless advised otherwise.
driver: (string, JDBC class name) The JDBC driver class that should be used. See the documentation for your database's Java driver for this value.
url: (string, JDBC database URL) The URL to connect to the database. For MySQL/PostgreSQL or other server-client databases, this will generally include the hostname, port and database name. For file-based databases, such as SQLite, this will usually include the filename.
The following are examples of what each configuration would look like for the two most commonly used database applications.


SQLite Configuration (default):

database:
username: bukkit
isolation: SERIALIZABLE
driver: org.sqlite.JDBC
password: walrus
url: jdbc:sqlite:{DIR}{NAME}.db
Note: the {DIR} and {NAME} words represent the directory of the plugin data folder and the name of the individual db file. They are actual variable names Bukkit uses, therefore changing these settings are not recommended.


MySQL Configuration example:

database:
username: {USERNAME}
isolation: SERIALIZABLE
driver: com.mysql.jdbc.Driver
password: {PASSWORD}
url: jdbc:mysql://{IP}:{PORT}/{DATABASENAME}
Note: {USERNAME}, {PASSWORD}, {IP}, {PORT}, and {DATABASENAME} are not actual variable names that Bukkit uses like in the SQLite example. They just represent data you should change to get the MySQL configuration to work correctly.


Díky ungurof.....

Zdroj: http://wiki.bukkit.org/Bukkit.yml

Uživatelský avatar
nejento
Příspěvky: 9815
Registrován: 28 lis 2011, 14:09
Reputation: 55
Kontaktovat uživatele:

Re: Bukkit.yml - database

#2 Příspěvekod nejento » 27 pro 2015, 03:12

Databáze, kterou můžeš nastavit na MySQL přímo v configu Bukkitu / Spigotu. Nějaké pluginy, které využívají databáze mohou používat tuto Bukkitovou databázi místo vlastní implementace. Není to příliš časté, ač jsem se už s nějakými pluginy, které by toto využívaly, setkal.
Obrázek

Obrázek Přidejte se ke komunitě zákazníků na FakaHeda.eu Discord! Poznejte nové lidi nebo vyřešte svůj technický problém živě: https://discord.fakaheda.eu/


Zpět na „Off topic“

Kdo je online

Uživatelé prohlížející si toto fórum: Žádní registrovaní uživatelé a 5 hostů