Hello,
I make a new server SFS2X with database linked but i receive this error :
10:16:35,389 ERROR [main] db.SFSDBManager - java.lang.ClassNotFoundException :
::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
Exception: java.lang.ClassNotFoundException
Message: com.mysql.cj.jdbc.Driver
Description: The initialization of the DBManager has failed.
Possible Causes: if the database driver is not 'seen' int the server classpath the setup fails.
Make sure to deploy the driver .jar file in the extensions/__lib__/ folder and restart the Server.
I try all i can do but cant fix this bug
i use connector in Lib mysql-connector-java_8.0.30-1debian11_all have also mysql-connector-java-5.1.38
my __lib__ is empty
i drop my extension in extension folder call [myExtName]
The initialization of the DBManager has failed
Re: The initialization of the DBManager has failed
Hi,
did you copy the mysql java connector under SFS2X/lib/ ?
Thanks
did you copy the mysql java connector under SFS2X/lib/ ?
Thanks
Re: The initialization of the DBManager has failed
Yes
mysql-connector-java_8.0.31-1debian11_all into Lib
https://ibb.co/Y0G1qZs
https://ibb.co/37rrw3R
https://ibb.co/z7DDmgH
https://ibb.co/5nMG1K5
https://ibb.co/c6TtCnw
mysql-connector-java_8.0.31-1debian11_all into Lib
https://ibb.co/Y0G1qZs
https://ibb.co/37rrw3R
https://ibb.co/z7DDmgH
https://ibb.co/5nMG1K5
https://ibb.co/c6TtCnw
Re: The initialization of the DBManager has failed
Hi,
the file you downloaded is an installer, rather than the library itself and it should be executed in order to deploy the required jar file.
In fact it has the .deb extension, while you need the java library which has a .jar extension name.
What you need to do:
- go back to the download page here: https://dev.mysql.com/downloads/connector/j/8.0.html
- in the "Select Operating System" choose "Platform Independent"
- download the .zip or .tar archive
- extract the archive, you'll find the mysql-connector-j-8.0.31.jar file
That's the file you need to deploy in SmartFoxServer
Cheers
the file you downloaded is an installer, rather than the library itself and it should be executed in order to deploy the required jar file.
In fact it has the .deb extension, while you need the java library which has a .jar extension name.
What you need to do:
- go back to the download page here: https://dev.mysql.com/downloads/connector/j/8.0.html
- in the "Select Operating System" choose "Platform Independent"
- download the .zip or .tar archive
- extract the archive, you'll find the mysql-connector-j-8.0.31.jar file
That's the file you need to deploy in SmartFoxServer
Cheers
Re: The initialization of the DBManager has failed
I'm stupid, I think you understood that I'm not a linux user? lol
Re: The initialization of the DBManager has failed
All work fine now thx you
Re: The initialization of the DBManager has failed
Good to know
Who is online
Users browsing this forum: No registered users and 62 guests