Configuring MySQL server connection in SmartFoxServer
- Open the
config.xml
in your favorite text editor. - Go to line 203 of the
config.xml.
This line should be within the structure of aZone
tag with name asdbZone.
- 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>
- 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.