RE: [WebDNA] Cannot get WebDNA and MySQL working.
This WebDNA talk-list message is from 2015
It keeps the original formatting.
numero = 112259
interpreted = N
texte = Donovan,=20 Thanks for the advice and assist! Here is the output of the code youprovided with some background. The OS is CentOS5.5. I've also made =sureSELINUX and the httpd server name was set per the README file. I'veattempted this on a CentOS6 64bit installation with WebDNA version 8 =andget the same results- so whatever I am missing I am missing it twice. I =wascurious to see if a new version would address the issue. Anyway, It =appearsI am not making the connection to the MySQL server, just not sure why =andthere isn't anything in the logs if any use.I've verified I can connect to the MySQL server from the command line =viamysql and for kicks I set up a DSN. I was originally trying to use thenative SQL set up, and only went the ODBC avenue just to see if I could =getanything to work.Output from your code sample.-------------------------------------------------------------------------=----------------------------------------------------------------------------=Info:Platform: linux unix 32bits =20Product: WebDNAVersion: 7.1.705INVALID VALUE (MySQL) FOR PARAMETER: type.- Please refer to the SQLConnect documentation.If I remove the dbType, which according the documentation, will default =toMYSQL, I get a different error see below:Result with the connection string less the dbtype:-------------------------------------------------------------------------=-------------------------------------------------ERROR: (null) DATABASE CONNECTION FAILED! - (NO IMPLEMENTATION ERROR =STRINGPROVIDED)=20SQLinfo reports: ERROR: COULD NOT FIND SQLCONNECT VARIABLE "conn1".- Subsequent SQL commands attempting to use that result ID will fail.=20Best,Keith~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~=~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~DISCLAIMER:=A0 Any views expressed in this message are those of the =individualsender. This email and any attachments to it may contain confidentialinformation and may be legally privileged.=A0 If you are not the =intendedrecipient, you must not review, transmit, convert to hard copy, copy, =use ordisseminate this email or any attachment to it. If you have received =thisemail in error, please immediately notify the originator by return email =anddelete this message. Please note that if this email contains a forwardedmessage or is a reply to a prior message, some or all of the contents ofthis message or any attachments may not have been produced by this =office.-----Original Message-----From: Donovan Brooke [mailto:dbrooke@euca.us]=20Sent: Monday, April 06, 2015 3:27 PMTo: talk@webdna.usSubject: Re: [WebDNA] Cannot get WebDNA and MySQL working.Keith,=20It=92s always good to be verbose when posting to a technical forum=85 =postingcode, mysql version, etc...Couple of things..ODBC only works with the older (and confusing) [SQL] contexts... (those =tagsshould be changed to [ODBC], and also checked over to make sure they arestill robust.. anyway=85)If you are testing locally.. plant this template on your server and copy =/past the results back to the list.*** CHANGE below to your actual password. *********=97=97=97=97=97=97START TEMPLATE=97=97=97=97=97=97=97=97=97=97MySQL testInfo:
Platform: [platform]
Product: [product]
Version: [version]
[SQLconnectdbType=3DMySQL&host=3Dlocalhost&database=3Dgallery_inv_management&uid=3Dr=oot&pwd=3D&conn_var=3Dconn1]Connected successfully
[/SQLConnect]SQLinfo reports:[SQLinfo conn_ref=3Dconn1]Host: [SQL_HOST]
Server Version: [SQL_SERVERVER]
Client Version: [SQL_CLIENTVER]
[/SQLinfo]