Mysql needs to be compiled with APE. There are threads about that in this google group, so a search should help you a lot on that matter.
Nicolas. On 25 fév, 04:30, Summer nguyen <[email protected]> wrote: > Finally, I found the problem. > This is because : the Code in Server.js that connect to mysql failed. > So it can not listen to getinfo command. > Could you please tell me how to configure the mysql and ape to connect > database. > I use the code connect database in Wiki, but it failed :( > Thank you very much. > > On Fri, Feb 25, 2011 at 1:02 AM, Marco "MiPnamic" Orlandin < > > [email protected]> wrote: > > If Demos works properly... I'll check asap :) > > > Marco > > > Inviato da iPhone > > > Il giorno 24/feb/2011, alle ore 18:16, Summer nguyen < > > [email protected]> ha scritto: > > > Dear, > > I dont understand why tool check doesnt work. I google : Ngnix dont > > understand JS GET method ( or sth I dont remember). > > But, all Demo work properly , so I start my job. > > @blueklein76: I will do so, > > @Marco : I dont know where misconfiguration. Please help me :( > > > On Thu, Feb 24, 2011 at 7:26 PM, Marco Orlandin < <[email protected]> > > [email protected]> wrote: > > >> it seems a global misconfiguration... MooTools not found but I can see > >> it... > > >> On Thu, Feb 24, 2011 at 12:25 PM, tunisiano < <[email protected]> > >> [email protected]> wrote: > >> > I tried your check tools ( <http://woow.dyndns.biz/ape/Tools/Check/> > >>http://woow.dyndns.biz/ape/Tools/Check/) > >> > after updated my hosts file and there it fails to load the APE > >> > Client... > >> > first check this point > >> > On Feb 24, 11:25 am, Summer nguyen <[email protected]> wrote: > >> >> Here is the Linkhttp://woow.dyndns.biz/ape/Demos/woow/ > > >> >> Please add these line to your host file : > > >> >> xxx.xxx.xxx.xxxx 0.woow.dyndns.biz > >> >> xxx.xxx.xxx.xxxx 1.woow.dyndns.biz > >> >> xxx.xxx.xxx.xxxx 2.woow.dyndns.biz > >> >> xxx.xxx.xxx.xxxx 3.woow.dyndns.biz > >> >> xxx.xxx.xxx.xxxx 4.woow.dyndns.biz > >> >> xxx.xxx.xxx.xxxx 5.woow.dyndns.biz > > >> >> please do ping woow.dyndns.biz to get xxx.xxx.xxx.xxx > > >> >> The problem is : I can not get onRaw data . > >> >> Please help me. Thank you very much, > >> >> client.addEvent('ready', function() { > >> >> //send getInfo command > >> >> client.core.request.send('getInfo', {'id_product': > >> '1071'}); > > >> >> //onRaw info callback > >> >> client.onRaw('info', function(params) { > >> >> * alert("getdata");* > >> >> console.log(params); > >> >> }); > > >> >> }); > > >> >> BTW, do I have to configure anything to connect mySQL. I dont think > >> >> server.js can connect to mysql now. > >> >> Where is Ape.log("writelog"); write to ?. is it /var/log/ape.log ? > >> >> Thank you very much. > > >> >> On Thu, Feb 24, 2011 at 3:12 PM, <[email protected]> wrote: > >> >> > The alert should appear "on Load"... I never tried to put an alert in > >> that > >> >> > position, have you tried to debug it with a Console? (eg. in Google > >> Chrome) > > >> >> > Sometimes an error placed elsewhere break the normal Javascript > >> execution. > > >> >> > Can you put online a page so I can help you debug it? > > >> >> > Il giorno , Summer nguyen <[email protected]> ha scritto: > > >> >> > > Dear , > >> >> > > I think I can not use cache in mysql. because data is changed every > >> >> > second. > >> >> > > But I will try to configure mysql to do so. > >> >> > > Thank you very much. > > >> >> > > Btw, I have a problem with code again. > >> >> > > I dont know why I can not recevice event load > > >> >> > > client.addEvent('load', function() { > >> >> > > alert("loaded"); // not works > >> >> > > client.core.start({'name': new > >> >> > Date().getTime().toString()}); > >> >> > > }); > > >> >> > > I dont know why. Please tell me Thank you very much. > > >> >> > > Note: I can not use check Tool because configuration of ngnix , > >> because > >> >> > java dont understand POST/GET in Tool Check. But Real TIme chat > >> works. > >> >> > > Do you know why ? thanks so much. > > >> >> > > On Thu, Feb 24, 2011 at 1:04 PM, Marco "MiPnamic" Orlandin > >> >> > [email protected]> wrote: > > >> >> > > Fortunately you can configure MySql as good as you need, and it > >> seems to > >> >> > have internal systems of caching data, so, I think that aren't 400 > >> real > >> >> > queries per second. > > >> >> > > You can answer yourself opening something like phpMyAdmin and try > >> to do > >> >> > the query by the SQL tab and take a look at ' in how many time the > >> query is > >> >> > executed '. > > >> >> > > I don't know why you need to do that thing in this way but it seems > >> >> > 'not-so-ideal' for me. > > >> >> > > Can you give us more information? > > >> >> > > Marco > > >> >> > > Inviato da iPhone > > >> >> > > Il giorno 24/feb/2011, alle ore 04:43, Summer nguyen > >> >> > [email protected]> ha scritto: > > >> >> > > Hello, > >> >> > > The table has about less than 50 records. > >> >> > > And the query like : SELECT a,b,c,d FROM test_table WHERE id = > >> 123 > >> >> > LIMIT 1 > > >> >> > > I have 200 clients ( now increasing) online at a moment who have > >> to get > >> >> > infomation every 500 miliseconds. > > >> >> > > So Server.js have to do more than 400 queries every seconds. > >> >> > > Do you think mysql can handle ? > > >> >> > > And btw, I have a problem with my code. I dont understand why the > >> code > >> >> > doesn't work. > >> >> > > I try to alert before APE works, alert OK. But after > >> client.load(), > >> >> > alert not OK. > > >> >> > > Here is the code. please help me. Thank you very much. > > >> >> > > On Wed, Feb 23, 2011 at 10:02 PM, Marco Orlandin [email protected]> > >> >> > wrote: > > >> >> > > Sincerely how much complex is the query? > > >> >> > > MySQL can handle a "LOT" of query is tables are good indexed... > > >> >> > > On Wed, Feb 23, 2011 at 10:57 AM, Summer nguyen > >> [email protected]> > >> >> > wrote: > > >> >> > > > Dear all, > > >> >> > > > I have many data store in mysql database , and it's updated every > >> >> > second. > > >> >> > > > So I want to use APE Server.js to get infomation and broadcast to > >> >> > Clients > > >> >> > > > every 500 miliseconds. > > >> >> > > > I have many clients , so I am afraid that mysql can not handle > >> >> > hundreads of > > >> >> > > > query per second, and every second. > > >> >> > > > I have an idea to use JAVA to write infomation to a XML file, > >> then I > >> >> > use > > >> >> > > > server.js to get infomation from this XML file. > > >> >> > > > I am finding a solution to use server.js to get infomation from > >> XML > >> >> > file. > > >> >> > > > anyone know, please help me. Thank you very much. > > >> >> > > > -- > > >> >> > > > 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]>[email protected] > > >> >> > > > To unsubscribe from this group, send email to > > >> >> > > > <ape-project%[email protected]> > >> [email protected] > > >> >> > > > For more options, visit this group at > > >> >> > > > <http://groups.google.com/group/ape-project?hl=en> > >>http://groups.google.com/group/ape-project?hl=en > > >> >> > > > --- > > >> >> > > > APE Project (Ajax Push Engine) > > >> >> > > > Official website : <http://www.ape-project.org/> > >>http://www.ape-project.org/ > > >> >> > > > Git Hub : <http://github.com/APE-Project/> > >>http://github.com/APE-Project/ > > >> >> > > -- > > >> >> > > while ( ! ( succeed = try() ) ); > > >> >> > > -- > > >> >> > > 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]>[email protected] > > >> >> > > To unsubscribe from this group, send email to > > >> >> > > <ape-project%[email protected]> > >> [email protected] > > >> >> > > For more options, visit this group at > > >> >> > > <http://groups.google.com/group/ape-project?hl=en> > >>http://groups.google.com/group/ape-project?hl=en > > >> >> > > --- > > >> >> > > APE Project (Ajax Push Engine) > > >> >> > > Official website : <http://www.ape-project.org/> > >>http://www.ape-project.org/ > > >> >> > > Git Hub : <http://github.com/APE-Project/> > >>http://github.com/APE-Project/ > > >> >> > > -- > > >> >> > > 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]>[email protected] > > >> >> > > To unsubscribe from this group, send email to > > >> >> > > <ape-project%[email protected]> > >> [email protected] > > >> >> > > For more options, visit this group at > > >> >> > > <http://groups.google.com/group/ape-project?hl=en> > >>http://groups.google.com/group/ape-project?hl=en > > >> >> > > --- > > >> >> > > APE Project (Ajax Push Engine) > > >> >> > > Official website : <http://www.ape-project.org/> > >>http://www.ape-project.org/ > > >> >> > > Git Hub : <http://github.com/APE-Project/> > >>http://github.com/APE-Project/ > > >> >> > > -- > > >> >> > > 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]>[email protected] > > >> >> > > To unsubscribe from this group, send email to > > >> >> > > <ape-project%[email protected]> > >> [email protected] > > >> >> > > For more options, visit this group at > > >> >> > > <http://groups.google.com/group/ape-project?hl=en> > >>http://groups.google.com/group/ape-project?hl=en > > >> >> > > --- > > >> >> > > APE Project (Ajax Push Engine) > > >> >> > > Official website : <http://www.ape-project.org/> > > ... > > plus de détails » -- 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/
