0

を使い始めましたSmartFoxServer 2x。以前は を使っていましたが、 をSmartFoxServer Pro使うべきだと判断したHTML5ので、 にしました。とにかく、データベース マネージャーに問題があります。まず、私がこれまでに行ってきたことを説明します。

  1. MySQL の Web サイトから「mysql-connector-java-5.1.38-bin.jar」ファイルをダウンロードしました。

  2. そして、「SmartFoxServer 2X\SFS2X\extensions__lib__」フォルダーにコピーしました。

  3. その後、管理ツール > Zone Configurator > Database Manager に入りました。

  4. アクティブ化 = はい

  5. データベース ドライバー クラス = com.mysql.jdbc.Driver

  6. 接続文字列 = jdbc:mysql://localhost:3306/login

  7. ユーザー名 = ルート

  8. パスワード = my_mysql_password

  9. テスト SQL = SELECT * FROM ユーザー

  10. そして、サーバーを再起動しました。

それは私にこのエラーを与えました:

Exception: java.lang.ClassNotFoundException
Message: com.mysql.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.
+--- --- ---+
Stack Trace:
+--- --- ---+
java.net.URLClassLoader$1.run(Unknown Source)
java.net.URLClassLoader$1.run(Unknown Source)
java.security.AccessController.doPrivileged(Native Method)
java.net.URLClassLoader.findClass(Unknown Source)
java.lang.ClassLoader.loadClass(Unknown Source)
sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
java.lang.ClassLoader.loadClass(Unknown Source)
java.lang.Class.forName0(Native Method)
java.lang.Class.forName(Unknown Source)
com.smartfoxserver.v2.db.SFSDBManager.setupDriver(SFSDBManager.java:345)
com.smartfoxserver.v2.db.SFSDBManager.init(SFSDBManager.java:62)
com.smartfoxserver.v2.entities.managers.SFSZoneManager.configureDBManager(SFSZoneManager.java:638)
com.smartfoxserver.v2.entities.managers.SFSZoneManager.createZone(SFSZoneManager.java:406)
com.smartfoxserver.v2.entities.managers.SFSZoneManager.initializeZones(SFSZoneManager.java:249)
com.smartfoxserver.v2.SmartFoxServer.start(SmartFoxServer.java:266)
com.smartfoxserver.v2.Main.main(Main.java:27)
sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
java.lang.reflect.Method.invoke(Unknown Source)
com.exe4j.runtime.LauncherEngine.launch(Unknown Source)
com.exe4j.runtime.WinLauncher.main(Unknown Source)
com.install4j.runtime.launcher.WinLauncher.main(Unknown Source)

私は何をすべきか?

4

1 に答える 1