Connecting to MYSQL
Posted: 16 Aug 2010, 21:14
I am been trying to solve this problem for days. Here is my config code
server error:
I use a Mac, and Xampp is my web server. I placed the MYSQL connecter in 'Applications/Utilities'. I recommend you include a detailed article in the documentations for Mac and Windows users.
Also does Smartfox support PHP?
Code: Select all
<DatabaseManager active="true">
<Driver>org.gjt.mm.mysql.Driver</Driver>
<ConnectionString>jdbc:mysql://localhost:80/files</ConnectionString>
<UserName>root</UserName>
<Password>root</Password>
<TestSQL><![CDATA[SELECT COUNT(*) FROM items]]></TestSQL>
<MaxActive>10</MaxActive>
<MaxIdle>10</MaxIdle>
<OnExhaustedPool>fail</OnExhaustedPool>
<BlockTime>5000</BlockTime>
</DatabaseManager>server error:
Code: Select all
it.gotoandplay.smartfoxserver.SmartFoxServer.initServerSocket(SmartFoxServer.java:339)
at it.gotoandplay.smartfoxserver.SmartFoxServer.run(SmartFoxServer.java:607)
Problems in config file: The Test SQL statement failed! Please check your configuration.
it.gotoandplay.smartfoxserver.exceptions.ConfigurationException: The Test SQL statement failed! Please check your configuration.
at it.gotoandplay.smartfoxserver.lib.ConfigReader.readZoneConfig(ConfigReader.java:199)
at it.gotoandplay.smartfoxserver.SmartFoxServer.initServerSocket(SmartFoxServer.java:339)
at it.gotoandplay.smartfoxserver.SmartFoxServer.run(SmartFoxServer.java:607)
Errors found in configuration files.
Unable to start the server.
Shutting down server...Also does Smartfox support PHP?