MYSQL Cgi Linux

paolo mazzapaolo at libero.it
Tue Mar 23 05:49:27 EST 2004


Ops . I got the solution...(after several attempts)
 The database type has to be written in lowercase ..... mysql   instead of
MYSQL
Now the following command works from a my CGIstack:
put revOpenDatabase("mysql",dbhost,dbdatabase,dbuser,dbpassword) into
dbresult
great Rev

ciao Paolo

----- Original Message -----
From: "paolo" <mazzapaolo at libero.it>
To: "How to use Revolution" <use-revolution at lists.runrev.com>
Sent: Tuesday, March 23, 2004 9:20 AM
Subject: MYSQL Cgi Linux


> I  installed the cgi-engine (Rev 2.0 for Linux)  in the cgi-bin of my
server
> provider (Linux/apache) an it work great ... then i tryed to connect to a
> mysql-database .
> I...
> - uploaded the database-driver to the server (file dbmysql.so from the
Linux
> folder in the distribution)
> - set the permission of the file (chmod 777 )
> - set 'revSetDatabaseDriverPath' to point the cgi-engine to the folder
with
> database
> drivers
> - wrote a cgi-scripts to connectto a MYSQL database installed on the
> server
> (put revOpenDatabase(cinfo["MYSQL","dbhost,dbdatabase,dbuser,dbpassword)
> into dbresult)
> - run the CGI
>
> As a result I  got this message :
>
>  revdberr,invalid database type
>
> I guess this is because revolution can not find the driver. Am I right?
> I cecked the 'revSetDatabaseDriverPath'.. it is correct  .. any idea?
>
> Ciao Paolo
>
>
> _______________________________________________
> use-revolution mailing list
> use-revolution at lists.runrev.com
> http://lists.runrev.com/mailman/listinfo/use-revolution
>




More information about the use-livecode mailing list