Configuring MySQL server connection in SmartFoxServer

  1. Open the config.xml in your favorite text editor.
  2. Go to line 203 of the config.xml. This line should be within the structure of a Zone tag with name as dbZone.
  3. Change the lines 203-218 from the config.xml:

    Original code:

    <DatabaseManager active="false">
    <Driver>sun.jdbc.odbc.JdbcOdbcDriver</Driver>
    <ConnectionString>jdbc:odbc:sfsTest</ConnectionString>
    <!--
    Example connecting to MySQL
    <Driver>org.gjt.mm.mysql.Driver</Driver>
    <ConnectionString>jdbc:mysql://192.168.0.1:3306/sfsTest </ConnectionString>
    -->
    <UserName>yourname</UserName>
    <Password>yourpassword</Password>
    <TestSQL><![CDATA[SELECT COUNT(*) FROM contacts]]></TestSQL>
    
  4. Replace the code in lines 203-218 with the following code:
    <DatabaseManager ...

Get Flash Multiplayer Virtual Worlds now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.