TianZhiJiaoZi
本帖最后由 TianZhiJiaoZi 于 2022-12-17 15:48 编辑
  1. [15:45:50] [Craft Scheduler Thread - 376/INFO]: [iConomy] Database Error: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

  2. The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
复制代码
  1. System:
  2.   Permissions:
  3.     Use:
  4.       Holdings: false

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

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

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

  12.     Account:
  13.       # Default account balance when created
  14.       Holdings: 0.0

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

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

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

  29.   # Logs all monetary transactions passed through iConomy
  30.   Logging:
  31.     Enabled: false

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

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

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

  41.     Announce:
  42.       # Send a message when the player gains interest?
  43.       Enabled: false

  44.     Interval:
  45.       #  Interval is done in seconds, here is a easy reference table for commonly set intervals:
  46.       #   1 minute = 60 seconds
  47.       #   1 hour = 1 minute * 60 = 3600 seconds
  48.       #   1 day = 1 hour * 24 = 86400 seconds
  49.       #   1 week = 1 day * 7 = 604800 seconds
  50.       Seconds: 60

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

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

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

  61.   Database:
  62.     # Databases Supported:
  63.     # Flatfile, FF, mini, minidb
  64.     #  - These all equate to miniDB
  65.     ##
  66.     # item, items, inventory, inventoryDB
  67.     #  - These all equate to InventoryDB, which uses inventory for storage
  68.     ##
  69.     # xp, exp, orb, xpdb, expdb, orbdb
  70.     #  - These all equate to ExperienceDB, which relies on Experience for balance.
  71.     ##
  72.     # mysql, mysqldb
  73.     #  - These will attempt to connect to MySQL
  74.     ##
  75.     # sqlite, sqlite2, sqlite3, sqlitedb
  76.     #  - These will attempt to create & connect to SQLite
  77.     ##
  78.     # postgre, postgreSQL, postgreDB
  79.     #  - These will attempt to connect to PostgreSQL
  80.     Type: 'Mysql'
  81.    
  82.     # These are for InventoryDB only.
  83.     #
  84.     # InventoryDB is essentially Physical Money.
  85.     #   It isn't logged in a database, its based on the users inventory
  86.     #   and the two items selected below.
  87.     #
  88.     # MajorItem is the item or block ID of the major currency
  89.     # MinorItem is the item or block ID of the minor currency
  90.     # e.g. MajorItem: 266, MinorItem: 265 for Gold/Iron
  91.     MajorItem: 266
  92.     MinorItem: 265

  93.     # This controls the database name, by default it is iConomy
  94.     Table: 'iConomy'

  95.     # URL is for SQL Databases Only
  96.     ##
  97.     # Path to iConomy folder is easy, it's the COMPLETE path.
  98.     # (Mine) G:\MineCraft\plugins\iConomy\
  99.     # Won't be the same as yours, but it usually looks like that.
  100.     ##
  101.     # [H2DB Default] h2:path/to/iConomy/folder/iConomy;AUTO_RECONNECT=TRUE
  102.     # [SQLite Default] sqlite:path/to/iConomy/folder/iConomy.db
  103.     ##
  104.     # Binary Databases use ip:port style connections.
  105.     # ip
  106.     #  - is the connection identifier (internet protocol)
  107.     #  - for ipv6 usually encased in brackets [::1]
  108.     # port
  109.     #  - the port that the database is listening on
  110.     #  - defaults: 3306 for mysql, postgre is either 5740 or 5432
  111.     ##
  112.     # [MySQL Default] mysql://localhost:3306/iConomy
  113.     # [Postgre Default] postgresql://localhost:5740/iConomy
  114.     URL: 'mysql://localhost:3306/iConomy'

  115.     # Login details for binary databases
  116.     Username: 'iConomy'
  117.     Password: '*****'

  118.     ##############################################################
  119.     # !!! Conversion is not your database settings !!!
  120.     ##############################################################
  121.     # Conversion allows you to convert your old 5.x to the new 6.x
  122.     # All is currently unused.
  123.     ##############################################################
  124.     # URL is for MySQL only, H2DB doesn't use it.
  125.     ##############################################################
  126.     Conversion:
  127.       # Set to True, After converting, change this back to false!
  128.       Enabled: false

  129.       # Database Type, H2DB or MySQL
  130.       Type: 'H2DB'

  131.       # Database Table
  132.       Table: 'iConomy'

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

  135.       # Username / Password
  136.       # H2DB does not use this. MySQL Only.
  137.       Username: 'root'
  138.       Password: ''

  139.       # Unused ATM.
  140.       All: true[/spoiler]
复制代码


DreamVoid
请确认你在本地安装了MySQL,并且端口为3306,并且MySQL处于正常运行状态。出现此错误是因为插件连接不上MySQL服务器。

奥力給
本帖最后由 奥力給 于 2022-12-17 16:15 编辑


TianZhiJiaoZi
DreamVoid 发表于 2022-12-17 15:56
请确认你在本地安装了MySQL,并且端口为3306,并且MySQL处于正常运行状态。出现此错误是因为插件连接不上My ...

确认了 其他插件都正常运行

TianZhiJiaoZi

这个是什么

奥力給

再看看,刚才卡bug了

TianZhiJiaoZi
奥力給 发表于 2022-12-17 16:15
再看看,刚才卡bug了

除了 iConomy 和 XConomy 还有什么能跨服同步经济的吗

奥力給
TianZhiJiaoZi 发表于 2022-12-17 17:39
除了 iConomy 和 XConomy 还有什么能跨服同步经济的吗

推荐使用CraftConomy3稳定好用