Skip to content

Can't reconnect to Mysql #101

@prozhong

Description

@prozhong

Its so weird....
(I promise..) There is no error in config.yml with the database host/port/password etc.(Using Remote Mysql)
1st
AND everytime after I restart the remote mysql server, I can start my server smoothly without any error and Authme hooked to remote mysql successfully.Players could login in and all is okay.

HOWEVER after I stop MC server and start it again...
Error shows like
"ERROR NULL"
"ERROR Can't reconnect to MySQL database... Please check your MySQL informations ! SHUTDOWN..."
SEE HERE http://pastebin.com/xdW81KLi

I can't start my server and Authme can't connect to mysql until I restart my MYsql server again.

So the problem is Authme only works fine at the very first time after MYSQL remote server restarts.

I know every minecraft-server-start is an Independent event,there must be something wrong with Mysql reconnects or Mysql remote server itself,but after I change the "useReloadCommandSupport: true" to false, errors disappear and my server starts successfully every time..

Any ideas? By the way I disable the caching,"caching: false".

2nd
I set the "caching: false" cause I want to setup a website for user register/changepassword but there seems an old bug (I heard one year ago) that "the password change on web wont be set ingame immediately due to caching blahblahblah and blame caching",its that bug still here ?

Thx for any reply and sorry for my English

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions