v2.db.SFSDBManager and MySQL

Post here your questions about SFS2X. Here we discuss all server-side matters. For client API questions see the dedicated forums.

Moderators: Lapo, Bax

Post Reply
li_ramen07
Posts: 34
Joined: 16 Feb 2011, 06:01
Location: Philippines

v2.db.SFSDBManager and MySQL

Post by li_ramen07 »

Hi All,

We had just setup our MySQL db & sfs2x server and encountered the following error. Anyone knows what causes this? Do we need to configure anything?

Code: Select all

26 Jul 2011 02:02:39,435 ERROR [main] v2.db.SFSDBManager     - 
::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
Exception: java.sql.SQLException
Message: null,  message from server: "Host '192.168.xx.xxx' is not allowed to connect to this MySQL server"
Description: The DBManager Test SQL failed
Please double check your SQL code and make sure that Database server is running.
::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
Li Ramen


on sleepless roads the sleepless go
User avatar
Lapo
Site Admin
Posts: 23438
Joined: 21 Mar 2005, 09:50
Location: Italy

Post by Lapo »

MySQL by default only accepts connections coming from the localhost. You must set it up correctly so that it can accept connections from the SFS2X instance (also make sure that login/pass are correctly matching)

cheers
Lapo
--
gotoAndPlay()
...addicted to flash games
li_ramen07
Posts: 34
Joined: 16 Feb 2011, 06:01
Location: Philippines

Post by li_ramen07 »

Thanks Lapo. We have already fixed this issue.

Just to verify, are delays expected in SFS writing logs? Sometimes, it takes minutes and even hours before we could see updates. Is this expected? The only way we could check errors in db connections and in sfs extensions are through the sfs logs so debugging for us consumes a lot of time.
Li Ramen


on sleepless roads the sleepless go
Post Reply