- Flash Multiplayer Virtual Worlds
- Makzan
- 191字
- 2025-02-25 14:21:03
Connecting SmartFoxServer and MySQL server
SmartFoxServer is a Java application and Java database connection driver is needed to connect from SmartFoxServer to MySQL database.
Downloading JDBC Driver for MySQL
JDBC is a Java database connection driver that we need to establish connections between the Java-based SmartFoxServer and the MySQL server. The JDBC driver for MySQL is called Connector/J. We are going to install it to enable MySQL connection from SmartFoxServer.
- Go to http://dev.mysql.com/downloads/connector/j/5.1.html in web browser.
- Download the Platform Independent Zip Archive.
- It may ask you to log in to MySQL.com account. Click on No thanks, just take me to the downloads! to bypass the login step.
- Choose a mirror to download by clicking on HTTP.
Setting up the JDBC driver
The MySQL Java connector comes with a bunch of files. We only need two among them.
- Extract the
mysql-connector-java-5.1.10.zip
file to a temporary folder. - Open the folder and find the
mysql-connector-java-5.1.10-bin.jar
file. - Copy that
jar
file intoSmartFoxServer installation directory | jre | lib | ext.
- Go into the
src
directory of the extracted directory and copy theorg
directory to SmartFoxServer installation directory | jre | lib | ext.