CGI MYSQL MACOSX

paolo mazza paolo.mazza at neol.it
Fri Sep 16 04:15:05 EDT 2005


Why I can not connect  to database from the CGI of revolution in MAC OSX  ?
I got Internal Server Error from Apache anytime I try to connect to
database.
I have 
- MACOSX 10.4
- Darwin Engine 2.5 that I got from
<ftp://ftp.runrev.com/pub/revolution/downloads/engines/2.1.2/Darwin.gz>
and people said "it is the last version of the Darwin engine that had the
database drivers included"
- Apache web server
- Mysql database running on the same machine

That's the script I placed in the cgi-bin folder

#!revolution -ui
on startup
  put revdb_connect("MySQL","192.168.0.43","database","user","psw")  into
buffer 
 put "Content-Type: text/plain" & cr
  put "Content-Length:" && the length of buffer & cr & cr
  put buffer
 end startup

If I open Revolution and I place "put
revdb_connect("MySQL","192.168.0.43","database","user","psw")  into
message " I always get an integer... MySQL works and the command is
correct.

Thank you

Paolo




More information about the use-livecode mailing list