I'm just inserting a wordpress comment into the database and returning the
comment id to the user.
The problem is that when I startup APE on the server, I get a mysql
connection error 11. I'm unsure how to debug this any further, here's what
I've got..
*Server script*
/**
* Returns the mysql object
*
* var sql = new Ape.MySQL("127.0.0.1:3306", "username",
"password", "db");
*/
getMysql: function()
{
if (!this.sql)
{
this.sql = new Ape.MySQL(this.options.socket,
this.options.username,
this.options.password, this.options.dbname);
// log any errors
this.sql.onError = function(e) {
this.debug('Connection error ');
this.debug( e );
this.debug( this.sql );
var self = this;
for (var key in self.sql) {
var obj = this.sql[key];
for (prop in obj) {
if (obj.hasOwnProperty(prop)){
self.debug(prop +' = '+ obj[prop]);
}
}
}
}.bind(this);
// log any successes
this.sql.onConnect = function(e) {
this.debug('Connection ACCOMPLISHED ');
this.query("SET time_zone = '0:00'");
}.bind(this);
// Set up a spooler to send keep alive request each
2minutes
this.keepAlive.bind(this).periodical(1000*60*2);
Ape.log(this.sql);
}
return this.sql;
}
*And the output*
2013-11-15 11:55:22 - src/entry.c:188 - APE starting up - pid : 3622
> 2013-11-15 11:55:22 - src/entry.c:251 - Starting daemon
> 2013-11-15 11:55:22 - libape-spidermonkey.c:2204 - JavaScript : [object
> MySQL]
> 2013-11-15 11:55:22 - libape-spidermonkey.c:2204 - JavaScript : Connection
> error
> 2013-11-15 11:55:22 - libape-spidermonkey.c:2204 - JavaScript : 11
> 2013-11-15 11:55:22 - libape-spidermonkey.c:2204 - JavaScript : [object
> MySQL]
--
--
You received this message because you are subscribed to the Google
Groups "APE Project" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/ape-project?hl=en
---
APE Project (Ajax Push Engine)
Official website : http://www.ape-project.org/
Git Hub : http://github.com/APE-Project/
---
You received this message because you are subscribed to the Google Groups "APE
Project" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.