官术网_书友最值得收藏!

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.

  1. Go to http://dev.mysql.com/downloads/connector/j/5.1.html in web browser.
  2. Download the Platform Independent Zip Archive.
  3. 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.
  4. 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.

  1. Extract the mysql-connector-java-5.1.10.zip file to a temporary folder.
  2. Open the folder and find the mysql-connector-java-5.1.10-bin.jar file.
  3. Copy that jar file into SmartFoxServer installation directory | jre | lib | ext.
  4. Go into the src directory of the extracted directory and copy the org directory to SmartFoxServer installation directory | jre | lib | ext.
主站蜘蛛池模板: 新河县| 哈尔滨市| 巴南区| 吉林市| 诏安县| 阜宁县| 柘城县| 鄂托克旗| 磐石市| 关岭| 中牟县| 南澳县| 郧西县| 邵武市| 都安| 富民县| 通山县| 库伦旗| 多伦县| 聂拉木县| 葵青区| 琼结县| 安陆市| 桦川县| 西青区| 黑水县| 公安县| 布尔津县| 大庆市| 新沂市| 手机| 綦江县| 辽中县| 西贡区| 双城市| 湖南省| 常州市| 鹿泉市| 徐闻县| 尚义县| 建水县|