Skip to content

Unable to connect MySQL Database  #2335

@Glucy-2

Description

@Glucy-2

Question

Unable to connect MySQL Database
plan ver: 5.4 build 1628 (velocity & fabric)

Additional context

log(fabric):

[01:50:32] [Plan Reload Thread/INFO]: [Plan] Processing complete.
[01:50:32] [Plan Reload Thread/INFO]: [Plan] Player Analytics Disabled.
[01:50:32] [Plan Reload Thread/INFO]: [Plan] 
[01:50:32] [Plan Reload Thread/INFO]: [Plan]            ██▌
[01:50:32] [Plan Reload Thread/INFO]: [Plan]      ██▌   ██▌
[01:50:32] [Plan Reload Thread/INFO]: [Plan]   ██▌██▌██▌██▌  Player Analytics
[01:50:32] [Plan Reload Thread/INFO]: [Plan]   ██▌██▌██▌██▌  v5.4 build 1628
[01:50:32] [Plan Reload Thread/INFO]: [Plan] 
[01:50:32] [Plan Reload Thread/INFO]: [Plan] Locale: 'English' by AuroraLS3
[01:50:32] [Plan Reload Thread/INFO]: [Plan] Downloading MySQL Driver, this may take a while...
[01:50:33] [Plan Reload Thread/ERROR]: [Plan] ----------------------------------------
[01:50:33] [Plan Reload Thread/ERROR]: [Plan] Error: MySQL init failure: Failed to initialize pool: Could not create connection to database server.
[01:50:33] [Plan Reload Thread/ERROR]: [Plan] ----------------------------------------
[01:50:33] [Plan Reload Thread/ERROR]: [Plan] Plugin failed to initialize correctly. If this issue is caused by config settings you can use /plan reload
[01:50:33] [Plan Reload Thread/INFO]: [Plan] Processing complete.
[01:50:33] [Plan Reload Thread/INFO]: [Plan] Waiting for unfinished transactions to avoid data loss..
[01:50:33] [Plan Reload Thread/INFO]: [Plan] Transaction queue closed.
[01:50:33] [Plan Reload Thread/INFO]: [Plan] Player Analytics Disabled.

log(velocity):

[02:25:03] [Plan Reload Thread/INFO]: Processing complete.
[02:25:03] [Plan Reload Thread/INFO]: Player Analytics Disabled.
[02:25:03] [Plan Reload Thread/INFO]: 
[02:25:03] [Plan Reload Thread/INFO]:            ██▌
[02:25:03] [Plan Reload Thread/INFO]:      ██▌   ██▌
[02:25:03] [Plan Reload Thread/INFO]:   ██▌██▌██▌██▌  Player Analytics
[02:25:03] [Plan Reload Thread/INFO]:   ██▌██▌██▌██▌  v5.4 build 1628
[02:25:03] [Plan Reload Thread/INFO]: 
[02:25:03] [Plan Reload Thread/INFO]: Locale: 'English' by AuroraLS3
[02:25:03] [Plan Reload Thread/INFO]: Downloading MySQL Driver, this may take a while...
[02:25:04] [Plan Reload Thread/ERROR]: ----------------------------------------
[02:25:04] [Plan Reload Thread/ERROR]: Error: MySQL init failure: Failed to initialize pool: Could not create connection to database server.
[02:25:04] [Plan Reload Thread/ERROR]: ----------------------------------------
[02:25:04] [Plan Reload Thread/ERROR]: Plugin Failed to Initialize Correctly. If this issue is caused by config settings you can use /planvelocity reload
[02:25:04] [Plan Reload Thread/INFO]: Processing complete.
[02:25:04] [Plan Reload Thread/INFO]: Waiting for unfinished transactions to avoid data loss..
[02:25:04] [Plan Reload Thread/INFO]: Transaction queue closed.
[02:25:04] [Plan Reload Thread/INFO]: Player Analytics Disabled.

plugin mysql config:

Database:
    MySQL:
        Host: q**************************************.mysql.*********.com
        Port: 3306
        User: Plan
        Password: ***********************6+**************basdf
        Database: plan
        # Launch options to append after mysql driver address
        Launch_options: "?rewriteBatchedStatements=true&useSSL=true&serverTimezone=UTC+8"
        Max_connections: 8

Metadata

Metadata

Assignees

No one assigned

    Labels

    QuestionQuestion related to the plugin functionality or other

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions