Skocz do zawartości
  • 👋 Witaj na MPCForum!

    Przeglądasz forum jako gość, co oznacza, że wiele świetnych funkcji jest jeszcze przed Tobą! 😎

    • Pełny dostęp do działów i ukrytych treści
    • Możliwość pisania i odpowiadania w tematach
    • System prywatnych wiadomości
    • Zbieranie reputacji i rozwijanie swojego profilu
    • Członkostwo w jednej z największych społeczności graczy

    👉 Dołączenie zajmie Ci mniej niż minutę – a zyskasz znacznie więcej!

    Zarejestruj się teraz

[Problem] MaxBans - MySQL


Rekomendowane odpowiedzi

Opublikowano

Witam,

 

mam problem z podłączeniem MaxBans pod MySQL. Wpisuję wszystko dobrze, ale pokazują się błędy.

[18:12:05] [Server thread/INFO]: [MaxBans] Enabling MaxBans v2.3
[18:12:06] [Server thread/INFO]: [MaxBans] Using MySQL
[18:12:10] [Server thread/WARN]: com.mysql.jdbc.exceptions.jdbc4.MySQLNonTransientConnectionException: Could not create connection to database server. Attempted reconnect 3 times. Giving up.
[18:12:10] [Server thread/WARN]: 	at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
[18:12:10] [Server thread/WARN]: 	at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:57)
[18:12:10] [Server thread/WARN]: 	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
[18:12:10] [Server thread/WARN]: 	at java.lang.reflect.Constructor.newInstance(Constructor.java:526)
[18:12:10] [Server thread/WARN]: 	at com.mysql.jdbc.Util.handleNewInstance(Util.java:407)
[18:12:10] [Server thread/WARN]: 	at com.mysql.jdbc.Util.getInstance(Util.java:382)
[18:12:10] [Server thread/WARN]: 	at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:1013)
[18:12:10] [Server thread/WARN]: 	at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:987)
[18:12:10] [Server thread/WARN]: 	at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:982)
[18:12:10] [Server thread/WARN]: 	at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:927)
[18:12:10] [Server thread/WARN]: 	at com.mysql.jdbc.ConnectionImpl.connectWithRetries(ConnectionImpl.java:2239)
[18:12:10] [Server thread/WARN]: 	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2168)
[18:12:10] [Server thread/WARN]: 	at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:794)
[18:12:10] [Server thread/WARN]: 	at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:47)
[18:12:10] [Server thread/WARN]: 	at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
[18:12:10] [Server thread/WARN]: 	at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:57)
[18:12:10] [Server thread/WARN]: 	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
[18:12:10] [Server thread/WARN]: 	at java.lang.reflect.Constructor.newInstance(Constructor.java:526)
[18:12:10] [Server thread/WARN]: 	at com.mysql.jdbc.Util.handleNewInstance(Util.java:407)
[18:12:10] [Server thread/WARN]: 	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:378)
[18:12:10] [Server thread/WARN]: 	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:305)
[18:12:10] [Server thread/WARN]: 	at java.sql.DriverManager.getConnection(DriverManager.java:571)
[18:12:10] [Server thread/WARN]: 	at java.sql.DriverManager.getConnection(DriverManager.java:187)
[18:12:10] [Server thread/WARN]: 	at org.maxgamer.maxbans.database.MySQLCore.getConnection(MySQLCore.java:48)
[18:12:10] [Server thread/WARN]: 	at org.maxgamer.maxbans.database.Database.<init>(Database.java:23)
[18:12:10] [Server thread/WARN]: 	at org.maxgamer.maxbans.MaxBans$2.<init>(MaxBans.java:189)
[18:12:10] [Server thread/WARN]: 	at org.maxgamer.maxbans.MaxBans.onEnable(MaxBans.java:189)
[18:12:10] [Server thread/WARN]: 	at org.bukkit.plugin.java.JavaPlugin.setEnabled(JavaPlugin.java:316)
[18:12:10] [Server thread/WARN]: 	at org.bukkit.plugin.java.JavaPluginLoader.enablePlugin(JavaPluginLoader.java:329)
[18:12:10] [Server thread/WARN]: 	at org.bukkit.plugin.SimplePluginManager.enablePlugin(SimplePluginManager.java:405)
[18:12:10] [Server thread/WARN]: 	at org.bukkit.craftbukkit.v1_7_R4.CraftServer.loadPlugin(CraftServer.java:476)
[18:12:10] [Server thread/WARN]: 	at org.bukkit.craftbukkit.v1_7_R4.CraftServer.enablePlugins(CraftServer.java:394)
[18:12:10] [Server thread/WARN]: 	at net.minecraft.server.v1_7_R4.MinecraftServer.n(MinecraftServer.java:360)
[18:12:10] [Server thread/WARN]: 	at net.minecraft.server.v1_7_R4.MinecraftServer.g(MinecraftServer.java:334)
[18:12:10] [Server thread/WARN]: 	at net.minecraft.server.v1_7_R4.MinecraftServer.a(MinecraftServer.java:290)
[18:12:10] [Server thread/WARN]: 	at net.minecraft.server.v1_7_R4.DedicatedServer.init(DedicatedServer.java:210)
[18:12:10] [Server thread/WARN]: 	at net.minecraft.server.v1_7_R4.MinecraftServer.run(MinecraftServer.java:458)
[18:12:10] [Server thread/WARN]: 	at net.minecraft.server.v1_7_R4.ThreadServerApplication.run(SourceFile:628)
[18:12:10] [Server thread/WARN]: Caused by: java.sql.SQLException: Access denied for user '<cenzura>'@'<cenzura>' (using password: YES)
[18:12:10] [Server thread/WARN]: 	at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:1073)
[18:12:10] [Server thread/WARN]: 	at com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:3593)
[18:12:10] [Server thread/WARN]: 	at com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:3525)
[18:12:10] [Server thread/WARN]: 	at com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:931)
[18:12:10] [Server thread/WARN]: 	at com.mysql.jdbc.MysqlIO.secureAuth411(MysqlIO.java:4031)
[18:12:10] [Server thread/WARN]: 	at com.mysql.jdbc.MysqlIO.doHandshake(MysqlIO.java:1296)
[18:12:10] [Server thread/WARN]: 	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2338)
[18:12:10] [Server thread/WARN]: 	at com.mysql.jdbc.ConnectionImpl.connectWithRetries(ConnectionImpl.java:2186)
[18:12:10] [Server thread/WARN]: 	... 27 more

4L0M4l0.png

Opublikowano

1. Sprawdź czy poprawnie podałeś dane do bazy danych

2.Czy na pewno dobry port ustawiłeś

3. Sprawdź czy utworzyłeś bazę danych 

Opublikowano

Sprawdz, czy wpisałeś poprawnie dane do bazy danych..

 

A co do pana wyżej to port w pluginach zazwyczaj domyślny, wiec od razu jest w kodzie, a nie w Configu :)

Opublikowano

@TheMajster Wole mieć inny port do MySql niż podstawowy (takie bezpieczeństwo)

 

Co to tematu a serwer bazy danych masz na tej samej maszynie czy na innej. Jeżeli jest na innej to możliwe że baza jest dostępna tylko na localhoscie

Opublikowano

Po prostu jeżeli posiadasz sporo baz danych a niektóre nie potrzebują aby wychodziły na zewnątrz to ustawiasz je tylko po localhoscie. Prościej będzie jak podasz gdzie masz serwer a gdzie bazę danych 

Opublikowano

Jak dobrze pamiętam to na vps musisz edytować jeden plik 

 /etc/MySQL/my.cn

Znajdź ta linijkę 

bind-address            = 127.0.0.1

i przerób ją na 

#bind-address            = 127.0.0.1

zapisz plik i zrestartuj Mysql

Opublikowano

Jeżeli to nie pomogło to nie wiem jaki jest problem. Jeżeli tego nie robisz z konta root to sprawdź czy ma uprawnienia do tej bazy danych

Opublikowano

Cieżko mi jest tłumaczyć uprawnienia w MySql. Sprawdź czy da rade poprzez konto roota się połączyć jeżeli tak to dalej będziemy kombinować 

Zarchiwizowany

Ten temat przebywa obecnie w archiwum. Dodawanie nowych odpowiedzi zostało zablokowane.

×
×
  • Dodaj nową pozycję...