Ir para conteúdo

[MYSQL] Erro ao utilizar mysql


Rafael fogao

Posts Recomendados

Boa noite a todos!

A mais ou menos um dia vim estudando como hospedar um servidor na vps AZURE

Bom até ai tudo bem, aprendi a liberar as conexões (porta)

E Consegui deixar o servidor online rapidamente

 

Porém, ao tentar utilizar mysql estou tendo muita dificuldade, por que é totalmente diferente

de quando a gente contrata uma hospedagem comum no multicraft que ja vem tudo mastigado.

 

Bom, eu tentei e tentei e não consegui, na mesma vps, criei uma VM para hospedar o servidor

E também criei um banco de dados mysql no qual estou conectado pela Mysql Workbench

Criei uma database com nome minecraft la na workbench

 

Depois vou até o servidor, coloco as informações de usuário mysql (corretamente) nas configurações do plugin

Plugin testado (PlayerPoints)

coloco tudo corretamente como está nesta imagem

foto.png

O Problema é que da este erro sempre, por mais que eu quebre a cabeça não consigo resolver , fazer os plugins se conectar ao banco de dados

[22:12:32] [Server thread/ERROR]: Error occurred while enabling PlayerPoints v2.1.4 (Is it up to date?)
java.lang.NoClassDefFoundError: lib/PatPeter/SQLibrary/MySQL
    at org.black_ixx.playerpoints.storage.models.MySQLStorage.connect(MySQLStorage.java:276) ~[?:?]
    at org.black_ixx.playerpoints.storage.models.MySQLStorage.<init>(MySQLStorage.java:61) ~[?:?]
    at org.black_ixx.playerpoints.storage.StorageGenerator.createStorageHandlerForType(StorageGenerator.java:47) ~[?:?]
    at org.black_ixx.playerpoints.storage.StorageHandler.starting(StorageHandler.java:65) ~[?:?]
    at org.black_ixx.playerpoints.PlayerPoints.registerModule(PlayerPoints.java:139) ~[?:?]
    at org.black_ixx.playerpoints.PlayerPoints.onEnable(PlayerPoints.java:64) ~[?:?]
    at org.bukkit.plugin.java.JavaPlugin.setEnabled(JavaPlugin.java:321) ~[spigot.jar:git-Spigot-db6de12-18fbb24]
    at org.bukkit.plugin.java.JavaPluginLoader.enablePlugin(JavaPluginLoader.java:340) [spigot.jar:git-Spigot-db6de12-18fbb24]
    at org.bukkit.plugin.SimplePluginManager.enablePlugin(SimplePluginManager.java:405) [spigot.jar:git-Spigot-db6de12-18fbb24]
    at org.bukkit.craftbukkit.v1_8_R3.CraftServer.loadPlugin(CraftServer.java:357) [spigot.jar:git-Spigot-db6de12-18fbb24]
    at org.bukkit.craftbukkit.v1_8_R3.CraftServer.enablePlugins(CraftServer.java:317) [spigot.jar:git-Spigot-db6de12-18fbb24]
    at net.minecraft.server.v1_8_R3.MinecraftServer.s(MinecraftServer.java:414) [spigot.jar:git-Spigot-db6de12-18fbb24]
    at net.minecraft.server.v1_8_R3.MinecraftServer.k(MinecraftServer.java:378) [spigot.jar:git-Spigot-db6de12-18fbb24]
    at net.minecraft.server.v1_8_R3.MinecraftServer.a(MinecraftServer.java:333) [spigot.jar:git-Spigot-db6de12-18fbb24]
    at net.minecraft.server.v1_8_R3.DedicatedServer.init(DedicatedServer.java:263) [spigot.jar:git-Spigot-db6de12-18fbb24]
    at net.minecraft.server.v1_8_R3.MinecraftServer.run(MinecraftServer.java:525) [spigot.jar:git-Spigot-db6de12-18fbb24]
    at java.lang.Thread.run(Unknown Source) [?:1.8.0_261]
Caused by: java.lang.ClassNotFoundException: lib.PatPeter.SQLibrary.MySQL
    at java.net.URLClassLoader.findClass(Unknown Source) ~[?:1.8.0_261]
    at org.bukkit.plugin.java.PluginClassLoader.findClass(PluginClassLoader.java:101) ~[spigot.jar:git-Spigot-db6de12-18fbb24]
    at org.bukkit.plugin.java.PluginClassLoader.findClass(PluginClassLoader.java:86) ~[spigot.jar:git-Spigot-db6de12-18fbb24]
    at java.lang.ClassLoader.loadClass(Unknown Source) ~[?:1.8.0_261]
    at java.lang.ClassLoader.loadClass(Unknown Source) ~[?:1.8.0_261]
    ... 17 more

Não sei se tem algum bloqueio ou algo parecido, se algum de vocês já usaram a vps azure com mysql , por favor me ajudem

 

Dês de já, agradeço!

Link para o comentário
Compartilhar em outros sites

java.lang.NoClassDefFoundError ele não consegue achar a classe, como o @SrBlecaute disse.. ele usa um biblioteca.. pode até estar no projeto mais pode não ter sido buildado de forma correta..

 

Acredito que seja esse o problema.. em casos assim eu sempre faço um sombreamento no pom.. recomendo enviar uma nota para o desenvolvedor do plugin

Editado por Keniaaa
Link para o comentário
Compartilhar em outros sites

4 horas atrás, Rafael fogao disse:

@SrBlecaute Não resolveu, pois não é só o player points que não ta funcionando, e sim todos os plugins do meu servidor de suporte a mysql,  eu realmente não estou conseguindo fazer eles conectar no meu banco de dados

envie o erro que é dado com os outros plugins.

Link para o comentário
Compartilhar em outros sites

Primeira linha do erro:

Error occurred while enabling PlayerPoints v2.1.4 (Is it up to date?)

tradução

Ocorreu um erro ao ativar o PlayerPoints v2.1.4 (Está atualizado?)

observe os parenteses "(Está atualizado?)", tente atualizar o plugin ou usar versões anteriores.

Link para o comentário
Compartilhar em outros sites

12 horas atrás, SrBlecaute disse:

envie o erro que é dado com os outros plugins.

 

12 horas atrás, danielzinh disse:

Primeira linha do erro:


Error occurred while enabling PlayerPoints v2.1.4 (Is it up to date?)

tradução


Ocorreu um erro ao ativar o PlayerPoints v2.1.4 (Está atualizado?)

observe os parenteses "(Está atualizado?)", tente atualizar o plugin ou usar versões anteriores.

Aqui agora é outro plugin,  um plugin de rankup que comprei com suporte mysql.

 

 

[13:57:45] [Server thread/INFO]: [PHRankup] Enabling PHRankup v1.0
[13:57:45] [Server thread/INFO]: [PHRankup] MVdWPlaceholderAPI encontrado, placeholders registradas
[13:57:45] [Server thread/INFO]: [PHRankup] Dependencia PlaceholderAPI encontrada, placeholders registradas
[13:57:45] [Server thread/INFO]: [PHRankup] Dependencia Legendchat encontrada, evento de chat registrado
[13:57:45] [Server thread/INFO]: [PHRankup] Iniciando conexao a database...
[13:57:49] [Server thread/ERROR]: [PHRankup] Ocorreu um erro ao se conectar ao MySQL, mudando armazenamento para SQLite.
[13:57:49] [Server thread/WARN]: com.mysql.jdbc.exceptions.jdbc4.MySQLNonTransientConnectionException: Could not create connection to database server. Attempted reconnect 3 times. Giving up.
[13:57:49] [Server thread/WARN]:     at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
[13:57:49] [Server thread/WARN]:     at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source)
[13:57:49] [Server thread/WARN]:     at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Source)
[13:57:49] [Server thread/WARN]:     at java.lang.reflect.Constructor.newInstance(Unknown Source)
[13:57:49] [Server thread/WARN]:     at com.mysql.jdbc.Util.handleNewInstance(Util.java:407)
[13:57:49] [Server thread/WARN]:     at com.mysql.jdbc.Util.getInstance(Util.java:382)
[13:57:49] [Server thread/WARN]:     at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:1013)
[13:57:49] [Server thread/WARN]:     at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:987)
[13:57:49] [Server thread/WARN]:     at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:982)
[13:57:49] [Server thread/WARN]:     at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:927)
[13:57:49] [Server thread/WARN]:     at com.mysql.jdbc.ConnectionImpl.connectWithRetries(ConnectionImpl.java:2239)
[13:57:49] [Server thread/WARN]:     at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2168)
[13:57:49] [Server thread/WARN]:     at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:794)
[13:57:49] [Server thread/WARN]:     at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:47)
[13:57:49] [Server thread/WARN]:     at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
[13:57:49] [Server thread/WARN]:     at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source)
[13:57:49] [Server thread/WARN]:     at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Source)
[13:57:49] [Server thread/WARN]:     at java.lang.reflect.Constructor.newInstance(Unknown Source)
[13:57:49] [Server thread/WARN]:     at com.mysql.jdbc.Util.handleNewInstance(Util.java:407)
[13:57:49] [Server thread/WARN]:     at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:378)
[13:57:49] [Server thread/WARN]:     at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:305)
[13:57:49] [Server thread/WARN]:     at java.sql.DriverManager.getConnection(Unknown Source)
[13:57:49] [Server thread/WARN]:     at java.sql.DriverManager.getConnection(Unknown Source)
[13:57:49] [Server thread/WARN]:     at com.retacky.rankupplugin.apis.StorageAPI.openConnectionMySQL(StorageAPI.java:48)
[13:57:49] [Server thread/WARN]:     at com.retacky.rankupplugin.apis.StorageAPI.loadDatabase(StorageAPI.java:87)
[13:57:49] [Server thread/WARN]:     at com.retacky.rankupplugin.apis.StorageAPI.<init>(StorageAPI.java:40)
[13:57:49] [Server thread/WARN]:     at com.retacky.rankupplugin.managers.StorageManager.loadDatabase(StorageManager.java:19)
[13:57:49] [Server thread/WARN]:     at com.retacky.rankupplugin.RyRankup.loadOthers(RyRankup.java:60)
[13:57:49] [Server thread/WARN]:     at com.retacky.rankupplugin.RyRankup.init(RyRankup.java:41)
[13:57:49] [Server thread/WARN]:     at com.retacky.rankupplugin.RyRankup.onEnable(RyRankup.java:28)
[13:57:49] [Server thread/WARN]:     at org.bukkit.plugin.java.JavaPlugin.setEnabled(JavaPlugin.java:321)
[13:57:49] [Server thread/WARN]:     at org.bukkit.plugin.java.JavaPluginLoader.enablePlugin(JavaPluginLoader.java:340)
[13:57:49] [Server thread/WARN]:     at org.bukkit.plugin.SimplePluginManager.enablePlugin(SimplePluginManager.java:405)
[13:57:49] [Server thread/WARN]:     at org.bukkit.craftbukkit.v1_8_R3.CraftServer.loadPlugin(CraftServer.java:357)
[13:57:49] [Server thread/WARN]:     at org.bukkit.craftbukkit.v1_8_R3.CraftServer.enablePlugins(CraftServer.java:317)
[13:57:49] [Server thread/WARN]:     at net.minecraft.server.v1_8_R3.MinecraftServer.s(MinecraftServer.java:414)
[13:57:49] [Server thread/WARN]:     at net.minecraft.server.v1_8_R3.MinecraftServer.k(MinecraftServer.java:378)
[13:57:49] [Server thread/WARN]:     at net.minecraft.server.v1_8_R3.MinecraftServer.a(MinecraftServer.java:333)
[13:57:49] [Server thread/WARN]:     at net.minecraft.server.v1_8_R3.DedicatedServer.init(DedicatedServer.java:263)
[13:57:49] [Server thread/WARN]:     at net.minecraft.server.v1_8_R3.MinecraftServer.run(MinecraftServer.java:525)
[13:57:49] [Server thread/WARN]:     at java.lang.Thread.run(Unknown Source)
[13:57:49] [Server thread/WARN]: Caused by: java.sql.SQLException: SSL connection is required. Please specify SSL options and retry.
[13:57:49] [Server thread/WARN]:     at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:1073)
[13:57:49] [Server thread/WARN]:     at com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:3593)
[13:57:49] [Server thread/WARN]:     at com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:3525)
[13:57:49] [Server thread/WARN]:     at com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:931)
[13:57:49] [Server thread/WARN]:     at com.mysql.jdbc.MysqlIO.secureAuth411(MysqlIO.java:4031)
[13:57:49] [Server thread/WARN]:     at com.mysql.jdbc.MysqlIO.doHandshake(MysqlIO.java:1296)
[13:57:49] [Server thread/WARN]:     at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2338)
[13:57:49] [Server thread/WARN]:     at com.mysql.jdbc.ConnectionImpl.connectWithRetries(ConnectionImpl.java:2186)
[13:57:49] [Server thread/WARN]:     ... 30 more

Link para o comentário
Compartilhar em outros sites

Visitante
Este tópico está impedido de receber novos posts.
×
×
  • Criar Novo...