Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

MySQL 8.0 support #1779

Open
rur0 opened this issue Mar 18, 2019 · 20 comments
Open

MySQL 8.0 support #1779

rur0 opened this issue Mar 18, 2019 · 20 comments
Labels
Priority: critical Marks issues that should be fixed/closed as soon as possible. Status: please verify Type: bug
Milestone

Comments

@rur0
Copy link

rur0 commented Mar 18, 2019

What behaviour is observed:

Server crashes without starting when using MYSQL storage with MYSQL 8 server

What behaviour is expected:

Server to start and run authme smoothly

Steps/models to reproduce:

enable and configure MYSQL with a MYSQL 8 server

Plugin list:

ProtocolLib, SkinsRestorer, AuthMe

Environment description

PaperMC standalone server with AuthMe MYSQL storage

AuthMe build number:

AuthMe v5.5.1-SNAPSHOT-b2214

Error Log:

https://pastebin.com/D4afV6fP

Configuration:

https://pastebin.com/gM6SyHg6

edit: Also, when I am trying to compile AuthMe, I get this error from maven http://i.imgur.com/osz9Nik.png am I missing some repository ?

@sgdc3
Copy link
Member

sgdc3 commented Mar 19, 2019

Spigot's built-in mysql connector doesn't support mysql 8 sadly,, we need to include our own connector library to fix this

@sgdc3 sgdc3 added Type: bug Priority: critical Marks issues that should be fixed/closed as soon as possible. labels Mar 19, 2019
@sgdc3 sgdc3 changed the title Unknown system variable 'tx_isolation' Mar 19, 2019
@rur0
Copy link
Author

rur0 commented Mar 22, 2019

So in the meantime I can use any mysql version that is not 8. Or is there a recommended version ?

@ljacqu
Copy link
Member

ljacqu commented Mar 22, 2019

Yes

@games647
Copy link
Member

You could also use MariaDB. It's a fork of MySQL and largely replaced the mysql package in many Linux distributions. However MariaDB 10+ is a major release and it could also contain breaking changes like in MySQL 8 from 5.7.

@games647
Copy link
Member

BTW I noticed that the MySQL connector Spigot currently uses should support MySQL 8. The fix should be included in Connector 5.1.44. This is available in Spigot 1.12.2+

@tommasobenatti
Copy link

I'm having this problem too with the latest build downloaded from the CI, please fix

@sgdc3
Copy link
Member

sgdc3 commented Apr 8, 2021

@tommasobenatti which MC version is your server at?

@tommasobenatti
Copy link

@tommasobenatti which MC version is your server at?

Paper 1.8.8,
with 1.12.2 there isn't this problem

sgdc3 added a commit that referenced this issue Apr 8, 2021
@sgdc3
Copy link
Member

sgdc3 commented Apr 9, 2021

@sgdc3 sgdc3 added the Status: awaiting answer Marks issues blocked by an open question to the reporter. label Apr 9, 2021
@sgdc3
Copy link
Member

sgdc3 commented Apr 12, 2021

@tommasobenatti @rur0 Can somebody please test the legacy jar?

@tommasobenatti
Copy link

Sorry, at the moment I'm very busy and I can't test

@r3cord
Copy link

r3cord commented Apr 22, 2021

@sgdc3
I've tested legacy and normal version on tuinity 1.16.5. It doesn't work with MariaDB 10
https://pastebin.com/Tf3igqeS

@tommasobenatti
Copy link

tommasobenatti commented Apr 22, 2021

I think that you should test on a 1.8 server @r3cord

@krusic22
Copy link
Member

Their issue is related to #2303 and 1.8 is obsolete anyway.

@r3cord
Copy link

r3cord commented Apr 22, 2021

@tommasobenatti ohh so there is no fix for this problem in not legacy version of the plugin?

@tommasobenatti
Copy link

This issue was created because AuthMe wasn't working on 1.8 and MySQL 8 afaik

@tommasobenatti
Copy link

tommasobenatti commented Apr 22, 2021

Since 1.8 is older than MySQL 8 and it dosn't include the library to connect to the database.
In fact the plugin works fine with 1.12 and MySQL 8 because the libraries are updated in the Paper Jar

@r3cord
Copy link

r3cord commented Apr 22, 2021

@krusic22 Yeah you're right. Thank you very much! I've had to change com.mysql.jc.jdbc.Driver to com.mysql.jdbc.Driver and now it works.
@tommasobenatti yeah my fault, this thread wasn't correlating to my problem. Sorry!

@NanoNM
Copy link

NanoNM commented Apr 26, 2021

Modify POM

mysql mysql-connector-java 8.0.xx true

package jar

Modify config.yml
mySQLDriverClassName: com.mysql.cj.jdbc.Driver
mySQLDatabase: xxx?serverTimezone=xxx

I use this method

@RuofengX
Copy link

RuofengX commented Jul 8, 2021

Version

Paper 1.16.5 build777
AuthMeReloaded v5.6.0-beta2 (build: 2453)
MYSQL 8
Ubuntu 2004

Error

Sometimes startup with ERROR, especially after starting up the server or restarting mysql:

Solution

in MYSQL:
ALTER USER 'root'@'%' IDENTIFIED WITH mysql_native_password BY 'Your New Password';
guided by this post: https://qiita.com/shaching/items/5fe3d5df691b4ec53084

sgdc3 added a commit that referenced this issue Aug 21, 2021
@sgdc3 sgdc3 added Status: please verify and removed Status: awaiting answer Marks issues blocked by an open question to the reporter. labels Aug 21, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Priority: critical Marks issues that should be fixed/closed as soon as possible. Status: please verify Type: bug
9 participants