That's the way to test if MySQL is working. 

What Peter said if mostly for Linux & Debian. On Debian/Ubuntu it's much 
simpler. Just install libmysqlclient-dev with apt-get. On OSX, it's a bit 
different.

To build with MySQL support on OSX, you need to install MySQL first 
(http://dev.mysql.com/downloads/mysql/5.0.html#macosx-dmg) and then move or 
link things around (APE isn't looking for MySQL at the same place it's 
installed. I should edit the build file for OSX). From my old notes, those 
command will move things around once APE is installed:

> sudo mkdir /usr/include/mysql/
> sudo cp -R /usr/local/mysql/include/* /usr/include/mysql
> sudo cp /usr/local/mysql/lib/libmysqlclient_r.* /usr/lib



If you're using the OSX binaries I sent you, I didn't test if mysql was 
actually working, but I don't think it will I'll have to rebuild later when I 
get home.


  - Louis


Le 2013-09-26 à 12:24, Joost van der Meijden <[email protected]> a 
écrit :

> How can I check if MySQL thing is installed? Cause I got the error: 
> ../scripts/application/biedingen.js:28:TypeError: Ape.MySQL is not a 
> constructor
> 
> Using code:
> 
> var sql = new Ape.MySQL('localhost', 'user', 'password', 'database');
>  sql.onConnect = function() {
>         Ape.log('Connected to mysql server');
>  }
> 
> -- 
> -- 
> 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.

-- 
-- 
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.

Reply via email to