MySQL a problém s frakcema!

Technická podpora k herním serverům Minecraft a Tekkit
Message
Autor
Daniel
Příspěvky: 180
Registrován: 30 črc 2012, 06:13
Reputation: 0

MySQL a problém s frakcema!

#1 Příspěvekod Daniel » 20 srp 2012, 13:02

V popisu

Zravim, funguje vám plugin Factions na 1.3.2? Mám nejnovější verzy a píše mi to, že je verze zastaralá (mám 1.6.9)
Díky za opdověď.

A ještě se chci zeptat jak mám vyplnit AuthMe, a iConomy, když je chci na MySQL (UltraBan, a mcMMO jsem napojil v pohode, ale tyhle dva pluginy napojit nejdou)

config iConomy

Spoiler: zobrazit

Kód: Vybrat vše

# iConomy 6.0.8b
# @author     Nijikokun <nijikokun@gmail.com>
# @license    GPLv2
# @copyright  Copyright AniGaiku LLC (C) 2010-2011
##
# Setup Notes
#   - Seconds
#         Basic Table:
#           1 minute = 60 seconds
#           1 hour = 1 minute * 60 = 3600 seconds
#           1 day = 1 hour * 24 = 86400 seconds
#           1 week = 1 day * 7 = 604800 seconds
#   - Database
#           Do not use remote databases from free sites, please use either a
#           remote database from a personal hosted VPS or DEDI or a local
#           database. This will prevent any 'timeout' or 'invalid settings'
#           or 'cannot connect to database' issues. Thank you :)!
##

System:
  Permissions:
    Use:
      # Should a user have the 'iConomy.holdings' to use /money
      # By default this is false, so that people stop complaining that
      # iConomy doesn't work. Yes, people actually report that.
      # If you are one of those people, leave this false.
      Holdings: false

  Default:
    Currency:
      # Major is the first segment [Major].Minor

      # Major ([Major].Minor) 1.00 Dollar (With Seperate 1 Dollar)
      Major: [ 'Dollar', 'Dollars' ]

      # Minor (Major.[Minor]) 0.23 Coins  (With Seperate 0 Dollars, 23 Coins)
      Minor: [ 'Coin', 'Coins' ]

    Account:
      # Default account balance when created
      Holdings: 30.0

  # Controls how money is formatted through methods
  Formatting:
    # Minor allows you to use the Minor amounts for amounts <1
    # Example (true) 0.23 Coins and 1.23 Dollars (false) 0.23 Dollars and 1.23 Dollars
    Minor: false

    # Seperate allows your money to be shown in an alternative way,
    # instead of 1.32 it will show as 1 Dollar 23 Coins
    # !!! NOTICE: This only works if Minor is set to true !!!
    Seperate: false                               # Example (true) 1 Dollar, 23 Coins (false) 1.23 Dollars (Only if Minor is true)

    # Single shows your money in another alternative way.
    # Instead of 1.23 Dollars you will see: 1 Dollar.
    # If your money is 0.23 you will see 0 Dollars if Minor is false, 23 Coins if Minor is true.
    # !!! Notice: This overrides seperate !!!
    Single: false

  # Logs all monetary transactions passed through iConomy
  Logging:
    Enabled: false

  # Purges Default Balances at Loading
  # Good way to keep unused accounts or default accounts wiped out and lower database usage.
  Purging:
    Enabled: true

  # Controls amount of money gained at a set interval.
  Interest:
    Enabled: false

    # Only give interest to players who are currently online?
    Online: true

    Announce:
      # Send a message when the player gains interest?
      Enabled: false

    Interval:
      #  Interval is done in seconds, here is a easy reference table for commonly set intervals:
      #   1 minute = 60 seconds
      #   1 hour = 1 minute * 60 = 3600 seconds
      #   1 day = 1 hour * 24 = 86400 seconds
      #   1 week = 1 day * 7 = 604800 seconds
      Seconds: 60

    Amount:
      # The balance to be met where we stop giving interest.
      # 0.0 for no limit
      Cutoff: 0.0

      # Percentage of holdings to give / take (Negative to take) (Overrides Min/Max)
      Percent: 0.0

      # This is range based, to set a "flat" or "constant" rate, set each (Maximum and Minimum) to the same number.
      # If the two numbers are different, it will be a random amount in-between the two.
      Maximum: 1
      Minimum: 2

  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: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/gs_27426_1'

    # Login details for binary databases
    Username: 'gs_27426_1'
    Password: 'Moje heslo'

    ##############################################################
    # !!! 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: 'MySQL'

      # Database Table
      Table: 'iConomy'

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

      # Username / Password
      # H2DB does not use this. MySQL Only.
      Username: 'gs_27426_1'
      Password: 'Moje heslo'

      # Unused ATM.
      All: true

Co mám upravit, aby se mi vytvořila databáze v MySQL?

A zde je config AuthMe

Spoiler: zobrazit

Kód: Vybrat vše

DataSource:
  mySQLColumnName: username
  mySQLTablename: authme
  mySQLUsername: authme
  backend: file
  mySQLColumnLastLogin: lastlogin
  mySQLDatabase: authme
  mySQLPort: '3306'
  mySQLColumnIp: ip
  mySQLHost: 127.0.0.1
  mySQLColumnPassword: password
  mySQLPassword: '12345'
  caching: true
GroupOptions:
  UnregisteredPlayerGroup: ''
  RegisteredPlayerGroup: ''
  Permissions:
    PermissionsOnJoin: []
settings:
  sessions:
    enabled: false
    timeout: 10
  restrictions:
    allowChat: false
    maxRegPerIp: 1
    maxNicknameLength: 20
    ForceSingleSession: true
    ForceSpawnLocOnJoinEnabled: false
    SaveQuitLocation: false
    AllowRestrictedUser: false
    AllowedRestrictedUser: []
    kickNonRegistered: false
    kickOnWrongPassword: false
    teleportUnAuthedToSpawn: false
    minNicknameLength: 3
    allowMovement: false
    timeout: 30
    allowedNicknameCharacters: '[a-zA-Z0-9_?]*'
    allowedMovementRadius: 100
    enablePasswordVerifier: true
    ProtectInventoryBeforeLogIn: true
  GameMode:
    ForceSurvivalMode: false
    ResetInventotyIfCreative: false
  security:
    minPasswordLength: 4
    unLoggedinGroup: unLoggedinGroup
    passwordHash: SHA256
    passwordMaxLength: 20
  registration:
    enabled: true
    messageInterval: 5
    force: true
  unrestrictions:
    UnrestrictedName: []
  messagesLanguage: en
ExternalBoardOptions:
  mySQLColumnSalt: ''
  mySQLColumnGroup: ''
  nonActivedUserGroup: -1
permission:
  EnablePermissionCheck: false
BackupSystem:
  ActivateBackup: false
  OnServerStart: false
  OnServerStop: true
  MysqlWindowsPath: C:\\Program Files\\MySQL\\MySQL Server 5.1\\
Passpartu:
  enablePasspartu: false


A co mám vyplnit zde, abyse to také napojilo na MySQL?
Předem děkuji za pomoc, dám karmu + !!!S pozdravem Daniel
Minecraft PvP server IP: 93.91.250.122:27426
[Frakce, mcMMO a mnoho dalšího!]

Pomohl jsem ti?Budu rád za karmu+

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

Re: MySQL a problém s frakcema!

#2 Příspěvekod nejento » 20 srp 2012, 13:36

U AuthMe musíš nastavit backend na mysql.

Toto

Kód: Vybrat vše

  backend: file

na

Kód: Vybrat vše

  backend: mysql
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/

Daniel
Příspěvky: 180
Registrován: 30 črc 2012, 06:13
Reputation: 0

Re: MySQL a problém s frakcema!

#3 Příspěvekod Daniel » 20 srp 2012, 13:45

U authme to mám takto

Spoiler: zobrazit

Kód: Vybrat vše

DataSource:
  mySQLColumnName: username
  mySQLTablename: authme
  mySQLUsername: gs_27426_1
  backend: mysql
  mySQLColumnLastLogin: lastlogin
  mySQLDatabase: authme
  mySQLPort: '3306'
  mySQLColumnIp: ip
  mySQLHost: 127.0.0.1
  mySQLColumnPassword: password
  mySQLPassword: Moje heslo
  caching: true


A tabulka se mi nevytvořila...a dokonce po mě authme nechce ani /login /register :( potom co jsem to takto nastavil.
Minecraft PvP server IP: 93.91.250.122:27426
[Frakce, mcMMO a mnoho dalšího!]

Pomohl jsem ti?Budu rád za karmu+

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

Re: MySQL a problém s frakcema!

#4 Příspěvekod nejento » 20 srp 2012, 13:50

Uprav to takto, proto se nenačetla. Nevědělo to kam.

Kód: Vybrat vše

DataSource:
  mySQLColumnName: username
  mySQLTablename: authme
  mySQLUsername: gs_27426_1
  backend: mysql
  mySQLColumnLastLogin: lastlogin
  mySQLDatabase: gs_27426_1
  mySQLPort: '3306'
  mySQLColumnIp: ip
  mySQLHost: localhost
  mySQLColumnPassword: password
  mySQLPassword: Tvoje heslo
  caching: true
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/

Daniel
Příspěvky: 180
Registrován: 30 črc 2012, 06:13
Reputation: 0

Re: MySQL a problém s frakcema!

#5 Příspěvekod Daniel » 20 srp 2012, 13:58

Zde je log při startu, dokonce se authme vypne, když server pustím, a tabulka stále není :(

Spoiler: zobrazit

Kód: Vybrat vše

2012-08-20 13:55:05 [INFO] [AuthMe] Loading Configuration File...
2012-08-20 13:55:05 [INFO] [AuthMe] Merge new Config Options..
2012-08-20 13:55:05 [INFO] [AuthMe] Set Language: en
2012-08-20 13:55:05 [INFO] [AuthMe] MySQL driver loaded
2012-08-20 13:55:05 [INFO] [AuthMe] Connection pool ready
2012-08-20 13:56:05 [SEVERE] [AuthMe] ERROR: Timeout while waiting for a valid database connection.
2012-08-20 13:56:05 [INFO] [AuthMe] Disabling AuthMe v2.6.6
2012-08-20 13:56:05 [INFO] [AuthMe] Authme 2.6.6 disabled
Minecraft PvP server IP: 93.91.250.122:27426
[Frakce, mcMMO a mnoho dalšího!]

Pomohl jsem ti?Budu rád za karmu+

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

Re: MySQL a problém s frakcema!

#6 Příspěvekod nejento » 20 srp 2012, 14:01

Zkus tedy:

Kód: Vybrat vše

DataSource:
  mySQLColumnName: username
  mySQLTablename: authme
  mySQLUsername: gs_27426_1
  backend: mysql
  mySQLColumnLastLogin: lastlogin
  mySQLDatabase: gs_27426_1
  mySQLPort: '3306'
  mySQLColumnIp: ip
  mySQLHost: localhost
  mySQLColumnPassword: password
  mySQLPassword: 'Heslo ale zavorky nechat'
  caching: true
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/

Daniel
Příspěvky: 180
Registrován: 30 črc 2012, 06:13
Reputation: 0

Re: MySQL a problém s frakcema!

#7 Příspěvekod Daniel » 20 srp 2012, 14:09

Spoiler: zobrazit

Kód: Vybrat vše

2012-08-20 14:07:23 [INFO] [AuthMe] Enabling AuthMe v2.6.6
2012-08-20 14:07:23 [INFO] [AuthMe] Loading Configuration File...
2012-08-20 14:07:23 [INFO] [AuthMe] Merge new Config Options..
2012-08-20 14:07:23 [INFO] [AuthMe] Set Language: en
2012-08-20 14:07:23 [INFO] [AuthMe] MySQL driver loaded
2012-08-20 14:07:23 [INFO] [AuthMe] Connection pool ready
2012-08-20 14:08:23 [SEVERE] [AuthMe] ERROR: Timeout while waiting for a valid database connection.
2012-08-20 14:08:23 [INFO] [AuthMe] Disabling AuthMe v2.6.6
2012-08-20 14:08:23 [INFO] [AuthMe] Authme 2.6.6 disabled


Stále,Stále a stále to samé
AuthMe se vypne a tabulka zde neni :(

Mám to takto
Spoiler: zobrazit

Kód: Vybrat vše

DataSource:
  mySQLColumnName: username
  mySQLTablename: authme
  mySQLUsername: gs_27426_1
  backend: mysql
  mySQLColumnLastLogin: lastlogin
  mySQLDatabase: authme
  mySQLPort: '3306'
  mySQLColumnIp: ip
  mySQLHost: localhost
  mySQLColumnPassword: password
  mySQLPassword: heslo
  caching: true
Minecraft PvP server IP: 93.91.250.122:27426
[Frakce, mcMMO a mnoho dalšího!]

Pomohl jsem ti?Budu rád za karmu+

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

Re: MySQL a problém s frakcema!

#8 Příspěvekod nejento » 20 srp 2012, 14:19

Dáváš to heslo do uvozovek ''?
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/

Daniel
Příspěvky: 180
Registrován: 30 črc 2012, 06:13
Reputation: 0

Re: MySQL a problém s frakcema!

#9 Příspěvekod Daniel » 20 srp 2012, 14:21

Ano, zkusil jsem obojí a dělá to to samé...
A co to jméno, mám ho dát taky do uvozovek?
Minecraft PvP server IP: 93.91.250.122:27426
[Frakce, mcMMO a mnoho dalšího!]

Pomohl jsem ti?Budu rád za karmu+

Uživatelský avatar
Sejsel
Příspěvky: 4131
Registrován: 19 čer 2011, 09:43
Reputation: 0
Bydliště: /home/sejsel/
Kontaktovat uživatele:

Re: MySQL a problém s frakcema!

#10 Příspěvekod Sejsel » 20 srp 2012, 14:59

Hoď sem celý Config. Bez hesla, samozřejmě.
01101110011101010110001001110111


Zpět na „Minecraft, Tekkit“

Kdo je online

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