Помогите Связать Iconomy и Mysql

  • Автор темы Автор темы Charting
  • Дата начала Дата начала

Charting

Активный участник
Пользователь
Баллы
88
Имя в Minecraft
Halder
Помогите связать Iconomy и Mysql... Вот Хост db2.myarena.ruПорт 3306 имя базы данных ring001_Server Пользователь ring001_ring777 Куда нужно вписывать пароль поставьте ***** Плиз....Просто не могу настроить. Поставлю лайк
 
Database:
# Databases Supported:
# Flatfile, FF, mini, minidb
# - These all equate to miniDB
##
# item, items, inventory, inventoryDB
# - These all equate to InventoryDB, which uses inventory for storage
##
# xp, exp, orb, xpdb, expdb, orbdb
# - These all equate to ExperienceDB, which relies on Experience for balance.
##
# mysql, mysqldb
# - These will attempt to connect to MySQL
##
# sqlite, sqlite2, sqlite3, sqlitedb
# - These will attempt to create & connect to SQLite
##
# postgre, postgreSQL, postgreDB
# - These will attempt to connect to PostgreSQL
Type: 'minidb'

# These are for InventoryDB only.
#
# InventoryDB is essentially Physical Money.
# It isn't logged in a database, its based on the users inventory
# and the two items selected below.
#
# MajorItem is the item or block ID of the major currency
# MinorItem is the item or block ID of the minor currency
# e.g. MajorItem: 266, MinorItem: 265 for Gold/Iron
MajorItem: 266
MinorItem: 265

# This controls the database name, by default it is iConomy
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😝ath/to/iConomy/folder/iConomy;AUTO_RECONNECT=TRUE
# [SQLite Default] sqlite😝ath/to/iConomy/folder/iConomy.db
##
# Binary Databases use ip😝ort 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://localhost:3306/iConomy'

# Login details for binary databases
Username: 'root'
Password: ''

##############################################################
# !!! 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: false

# Database Type, H2DB or MySQL
Type: 'H2DB'

# Database Table
Table: 'iConomy'

# Database URL without table at the end.
URL: 'mysql://localhost:3306'

# Username / Password
# H2DB does not use this. MySQL Only.
Username: 'root'
Password: ''

# Unused ATM.
All: true

Я просто не могу разобраться куда нужно название базы данных вставлять
 
Код:
# Database Type, H2DB or MySQL
Type: 'MySQL' тут пиши MySql
 
# Database Table
Table: 'iConomy' Название таблицы
 
# Database URL without table at the end.
URL: 'mysql://db2.myarena.ru:3306' где localhost там будет айпи твоего веб-сервера порт 3306 лучше не меняй, если не знаешь.
 
# Username / Password
# H2DB does not use this. MySQL Only.
Username: 'ring001_ring777' Имя юзера базы данных
Password: 'ВОТ ТУТ БЛ*ТЬ ПАРОЛЬ' пароль базы данных

В коде прочитай что я написал, думаю поймешь.
 
Код:
# Database Type, H2DB or MySQL
Type: 'MySQL' тут пиши MySql
 
# Database Table
Table: 'iConomy' Название таблицы
 
# Database URL without table at the end.
URL: 'mysql://db2.myarena.ru:3306' где localhost там будет айпи твоего веб-сервера порт 3306 лучше не меняй, если не знаешь.
 
# Username / Password
# H2DB does not use this. MySQL Only.
Username: 'ring001_ring777' Имя юзера базы данных
Password: 'ВОТ ТУТ БЛ*ТЬ ПАРОЛЬ' пароль базы данных

В коде прочитай что я написал, думаю поймешь.
Сделал но таблица не создается
 
Запросом SQL попробуй
 
Запросом SQL попробуй
#1064 - You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'Conversion: # Set to True, After converting, change this back to false! ' at line 1
Вот такую херню мне пишет

Надо куда нибудь писать название базы данных????
 
#1064 - You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'Conversion: # Set to True, After converting, change this back to false! ' at line 1
Вот такую херню мне пишет
Надо куда нибудь писать название базы данных????
Ну ты перед тем как писать что то, узнай как пишется и что тебе нужно) пишет же что в синтаксе ошибка
-------------
P.S. я SQL не учил, знаю что так можно добиться того что ты хочешь, пилите Шура)
 
Ну ты перед тем как писать что то, узнай как пишется и что тебе нужно) пишет же что в синтаксе ошибка
-------------
P.S. я SQL не учил, знаю что так можно добиться того что ты хочешь, пилите Шура)
А что нужно сделать?
 
Назад
Верх