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

use MSSQL as database for this plugin #384

Open
Venkinovec opened this issue Mar 8, 2021 · 8 comments
Open

use MSSQL as database for this plugin #384

Venkinovec opened this issue Mar 8, 2021 · 8 comments

Comments

@Venkinovec
Copy link

Venkinovec commented Mar 8, 2021

Is your feature request related to a problem? Please describe.
We are already using MSSQL with many MC servers, but as it seems your plugins does not have drivers to communicate.
java.sql.SQLException: No suitable driver found for jdbc:sqlserver://localhost:1433;databaseName=Bungeecord;

config: mysql: tableprefix: bungeeperms_ url: jdbc:sqlserver://localhost:1433;databaseName=Bungeecord;user=bungeecord;password=<password>. user: bungeeperms password: password
If i'm wrong, could you please explain me what is needed ?
Thank you

@aurorasmiles
Copy link
Collaborator

Seems like your config is faulty. Check out our wiki for how to configure the url correctly. It seems like you replaced parts of the url without knowing what they do. All you have to do is replace localhost with the address where your database is, if different, replace 3306 with the port, if different, and replace the part behind the address:port/HERE with your database name. Don't replace or remove anything else.

@Venkinovec
Copy link
Author

Venkinovec commented Mar 8, 2021

Update, I used the syntax as described in wiki. Still won't connect but also crashes Bungeecord.
[BungeePerms] Connecting to database 15:03:33 [SEVERE] Task BungeeTask(sched=net.md_5.bungee.scheduler.BungeeScheduler@4f6ee6e4, id=0, owner=net.alpenblock.bungeeperms.platform.bungee.BungeePlugin@1ab3a8c8, task=net.alpenblock.bungeeperms.metrics.bungee.Metrics$$Lambda$3/1438098656@4466af20, delay=120000, period=1800000, running=true) encountered an exception java.lang.NullPointerException at net.alpenblock.bungeeperms.metrics.bungee.Metrics.getServerData(Metrics.java:196) at net.alpenblock.bungeeperms.metrics.bungee.Metrics.submitData(Metrics.java:227) at net.md_5.bungee.scheduler.BungeeTask.run(BungeeTask.java:63) at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source) at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source) at java.lang.Thread.run(Unknown Source)
Config:
mysql: user: bungeecord password: <password> tableprefix: bungeeperms_ url: jdbc:mysql://localhost:1433/Bungeecord?autoReconnect=true&dontTrackOpenResources=true

My sql is cofigured correctly as I tested with managment studio to be able connect
image
image

Any suggestions ?

@aurorasmiles
Copy link
Collaborator

Please paste the complete exception to a paste site

@Venkinovec
Copy link
Author

@Venkinovec
Copy link
Author

Have you found out something ?

https://pastebin.com/V8KTxBh4

@aurorasmiles
Copy link
Collaborator

Oh wait, you are using MSSQL not MySQL?
I'm sorry, my mistake then. I'll have to look into using that then, I'm not sure if it is supported atm

@Venkinovec
Copy link
Author

OK, let me know if you find anything.

@Venkinovec
Copy link
Author

Venkinovec commented Mar 20, 2021

Hello, I was investigating the jdbc driver ( jdbc:mysql://localhost:1433/.....) and according to microsoft it should be working with MSSQL without any problem. That is if it really is jdbc.
@aurorasmiles

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants