title: Configuring MySQL server connection in SmartFoxServer
body: <p>I have been trying to connect to mysql via JDBC in <code>config.xml</code>.</p>
  
  <p>I've changed  default values to proper values like below :</p>
  
  <pre><code>&lt;DatabaseManager active="true"&gt;
  
  
          &lt;Driver&gt;org.gjt.mm.mysql.Driver&lt;/Driver&gt;
          &lt;ConnectionString&gt;jdbc:mysql://127.0.0.1:3306/mysql&lt;/ConnectionString&gt;
  
          &lt;UserName&gt;root&lt;/UserName&gt;
          &lt;Password&gt;&lt;/Password&gt;
  
          &lt;TestSQL&gt;&lt;![CDATA[SELECT NOW()]]&gt;&lt;/TestSQL&gt;
  
          &lt;MaxActive&gt;10&lt;/MaxActive&gt;
          &lt;MaxIdle&gt;10&lt;/MaxIdle&gt;
  
          &lt;OnExhaustedPool&gt;fail&lt;/OnExhaustedPool&gt;
          &lt;BlockTime&gt;5000&lt;/BlockTime&gt;
  
  &lt;/DatabaseManager&gt;
  </code></pre>
  
  <p>But when i try to start SmartFoxServer, get following errors :</p>
  
  <pre><code>        DB Manager Activated ( org.gjt.mm.mysql.Driver )
  Can't load db driver: org.gjt.mm.mysql.Driver
  11:13:16.054 - [ SEVERE ] &gt; DbManager could not retrive a connection. java.sql.S
  QLException: Configuration file not found
  it.gotoandplay.smartfoxserver.exceptions.DbManagerException: The Test SQL statem
  ent failed! Please check your configuration.
          at it.gotoandplay.smartfoxserver.SmartFoxServer.setupZone(SmartFoxServer
  .java:1843)
          at it.gotoandplay.smartfoxserver.lib.ConfigReader.parse_Zones(ConfigRead
  er.java:806)
          at it.gotoandplay.smartfoxserver.lib.ConfigReader.readZoneConfig(ConfigR
  eader.java:174)
          at it.gotoandplay.smartfoxserver.SmartFoxServer.initServerSocket(SmartFo
  xServer.java:339)
          at it.gotoandplay.smartfoxserver.SmartFoxServer.run(SmartFoxServer.java:
  607)
  Problems in config file: The Test SQL statement failed! Please check your config
  uration.
  it.gotoandplay.smartfoxserver.exceptions.ConfigurationException: The Test SQL st
  atement failed! Please check your configuration.
          at it.gotoandplay.smartfoxserver.lib.ConfigReader.readZoneConfig(ConfigR
  eader.java:199)
          at it.gotoandplay.smartfoxserver.SmartFoxServer.initServerSocket(SmartFo
  xServer.java:339)
          at it.gotoandplay.smartfoxserver.SmartFoxServer.run(SmartFoxServer.java:
  607)
  
  Errors found in configuration files.
  Unable to start the server.
  
  
  Shutting down server...
  
  Press any key to continue . . .
  </code></pre>
  
  <p>Please tell me what am i doing wrong ?</p>
  
  <p>Any helps would be appreciated.</p>