abeldebeer
05-18-2011, 06:12 PM
Hi,
I'm trying to run the DBLoginMySQL example using AS3. I have a machine running MySQL installed with the XAMPP package on a custom port (4242). I've created a 'userinfo' database and the only change I've made to the example's database.properties file is the following:
# Specify the url for MySQL, and a valid existing database (UserInfo)
database.url=jdbc:mysql://localhost:4242/userinfo
(And of course set my username and password.)
I have added the DBLoginMySQL extension folder to the server's "extensions" folder. I wasn't sure which (DBLoginMySQL) extensions to add as server level components, so I just ran the AS3 example to see what would happen:
When I run without any server level components, I get a [PluginNotFound] error. Some discussion on this forum pointed me to the solution of making sure the DatabasePlugin was set as a server level component.
With just the DatabasePlugin installed, I don't see the [PluginNotFound] error, but nothing happens when I click the "add to rank" button either. The server console shows a DEBUG message:
DEBUG Extensions.DBLoginMySQL.Plugins.DatabasePlugin - myUserName requests: {EsObject:
a:string = r
}
Next I tried adding the DBLoginHandler plugin. When I now run the SWF and attempt to login the SWF view changes to "Please wait", and the console is showing the following:
DEBUG Extensions.DBLoginMySQL.EventHandlers.DBLoginHandl er - myUserName logging in with password myPassword
DEBUG Extensions.DBLoginMySQL.EventHandlers.DBLoginHandl er - Attempting to load user info
Nothing else is happening.
...OH WAIT! After some time (a few minutes?) I get the following console messages:
ERROR com.electrotank.electroserver5.examples.dblogin.Co ntroller - Controller.getUserInfo error:
DEBUG Extensions.DBLoginMySQL.EventHandlers.DBLoginHandl er - Attempting to register user
So now I have to wait for the next timeout? ;)
I guess the problem is actually making the connection to the database, but I'm not sure which settings to change to make it work.
Hopefully you can point me in the right direction.
- Abel.
I'm trying to run the DBLoginMySQL example using AS3. I have a machine running MySQL installed with the XAMPP package on a custom port (4242). I've created a 'userinfo' database and the only change I've made to the example's database.properties file is the following:
# Specify the url for MySQL, and a valid existing database (UserInfo)
database.url=jdbc:mysql://localhost:4242/userinfo
(And of course set my username and password.)
I have added the DBLoginMySQL extension folder to the server's "extensions" folder. I wasn't sure which (DBLoginMySQL) extensions to add as server level components, so I just ran the AS3 example to see what would happen:
When I run without any server level components, I get a [PluginNotFound] error. Some discussion on this forum pointed me to the solution of making sure the DatabasePlugin was set as a server level component.
With just the DatabasePlugin installed, I don't see the [PluginNotFound] error, but nothing happens when I click the "add to rank" button either. The server console shows a DEBUG message:
DEBUG Extensions.DBLoginMySQL.Plugins.DatabasePlugin - myUserName requests: {EsObject:
a:string = r
}
Next I tried adding the DBLoginHandler plugin. When I now run the SWF and attempt to login the SWF view changes to "Please wait", and the console is showing the following:
DEBUG Extensions.DBLoginMySQL.EventHandlers.DBLoginHandl er - myUserName logging in with password myPassword
DEBUG Extensions.DBLoginMySQL.EventHandlers.DBLoginHandl er - Attempting to load user info
Nothing else is happening.
...OH WAIT! After some time (a few minutes?) I get the following console messages:
ERROR com.electrotank.electroserver5.examples.dblogin.Co ntroller - Controller.getUserInfo error:
DEBUG Extensions.DBLoginMySQL.EventHandlers.DBLoginHandl er - Attempting to register user
So now I have to wait for the next timeout? ;)
I guess the problem is actually making the connection to the database, but I'm not sure which settings to change to make it work.
Hopefully you can point me in the right direction.
- Abel.