Stránka 1 z 1

iConomy - Mysql - kupovani kitov na Annihilation na lobby

Napsal: 14 pro 2014, 20:44
od andrej4045
Server: 93.91.250.138:27411
Dobrý deň nevie mi nekdo poradit ako mam spojiť plugin iconomy pres mysql ? Ucel: na kupovani Annihilation kitov... vedel by to nekdo ?

-- 14 pro 2014, 23:18 --

//edit nakupováni kitov uz mam iba jak spojit plugin iconomy pres mysql.

Re: iConomy - Mysql - kupovani kitov na Annihilation na lobb

Napsal: 15 pro 2014, 11:08
od marty_
dle tohoto configu si to uprav:
Spoiler: zobrazit

Kód: Vybrat vše


  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: 'mysql'
   
    # 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: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://localhost:3306/nazevtvedb'

    # Login details for binary databases
    Username: 'tvujusername'
    Password: 'tvojeheslo'

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


jedna se predevsim o tyto radky:
Type: 'mysql' (to mysql tam musis dat)
URL: 'mysql://localhost:3306/nazevtvedatabaze'
Username: 'tvujusername'
Password: 'tvojeheslo' (tucne oznacene polozky musis zmenit dle toho co mas v mailu od fakahedy)

Re: iConomy - Mysql - kupovani kitov na Annihilation na lobb

Napsal: 15 pro 2014, 15:44
od andrej4045
Uz som to viresil vcera ale diky :)