Re: [WebDNA] Cannot get WebDNA and MySQL working.

This WebDNA talk-list message is from

2015


It keeps the original formatting.
numero = 112251
interpreted = N
texte = --Apple-Mail=_BF8C4835-7B6F-4177-9809-C161F5D96C3F Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=utf-8 Keith This example may help First make your MySQL connection: In this case I use an external DB, you could put in localhost, etc [SQLConnect = dbType=3DMySQL&host=3Ddb.mydomain.com&database=3Dmydatabase&uid=3Dusername= &pwd=3Dpassword&conn_var=3DMYCONNECTION][/SQLConnect] Then using the variable MYCONNECTION I do the query: Here the results are held in a variable names RES-STOCK [SQLExecute conn_ref=3D MYCONNECTION&result_var=3DRES-STOCK] select T3Q_NEXTDUE, T3Q_TOTAL, T3Q_OL, T3Q_CN, T3Q_MP, T3Q_SY, T3Q_ME from t3stock WHERE T3Q_ILC =3D "[ITEMLOOKUPCODE]" [/SQLExecute] Then get the results from the query: [SQLResult result_ref=3DRES-STOCK][!] [/!][FOUNDITEMS][!] [/!][TEXT]STOCK_NEXTDUE=3D[T3Q_NEXTDUE][/TEXT][!] [/!][TEXT]STOCK_TOTAL=3D[T3Q_OL][/TEXT][!] [/!][TEXT]STOCK_OL=3D[T3Q_OL][/TEXT][!] [/!][TEXT]STOCK_CN=3D[T3Q_CN][/TEXT][!] [/!][TEXT]STOCK_MP=3D[T3Q_MP][/TEXT][!] [/!][TEXT]STOCK_SY=3D[T3Q_SY][/TEXT][!] [/!][TEXT]STOCK_ME=3D[T3Q_ME][/TEXT][!] [/!][/FOUNDITEMS][!] [/!][/SQLResult] Kind regards Stuart Tremain IDFK Web Developments AUSTRALIA webdna@idfk.com.au > On 5 Apr 2015, at 10:20, Keith Scarzafava = wrote: >=20 > I=E2=80=99ve been trying to get my WebDNA to connect to MySQL and have = not been able to do so with version (6.2 with Centos5) or version (8.0 = with Centos6). I posted in the regular forums and was advised to try = here. Basically, I started out on my 6.2 WebDNA server and followed the = setup directions for the DSN setup which, I can connect to my MySQL via = a DSN with isql and perform queries and such. If I try to use WebDNA, I = get the error: MySQL not supported. If I tried to use the SQLCONNECT = method I get the error: INVALID VALUE (MySQL) FOR PARAMETER: type. > =20 > After a couple of postings in the forums, I was told I don=E2=80=99t = need to use the DSN method because WebDNA supports MySQL natively = (though I tried both method). I then figured, I would give it a try on = my version 8 WebDNA server and, I still am getting the same exact = messages. I=E2=80=99ve been sifting through any postings I can find and = I can=E2=80=99t find any form of resolution. > =20 > Any help is greatly appreciated. > =20 > KS > =20 > =20 > --------------------------------------------------------- This message = is sent to you because you are subscribed to the mailing list . To = unsubscribe, E-mail to: archives: = http://mail.webdna.us/list/talk@webdna.us = Bug Reporting: = support@webdna.us --Apple-Mail=_BF8C4835-7B6F-4177-9809-C161F5D96C3F Content-Transfer-Encoding: quoted-printable Content-Type: text/html; charset=utf-8 Keith

This = example may help

First make your MySQL connection:
In = this case I use an external DB, you could put in localhost, = etc

[SQLConnect = dbType=3DMySQL&host=3Ddb.mydomain.com&database=3Dmydatabase&uid=3Dusernam= e&pwd=3Dpassword&conn_var=3DMYCONNECTION][/SQLConnect]

Then using the variable = MYCONNECTION I do the query:
Here the results are = held in a variable names RES-STOCK

[SQLExecute = conn_ref=3D MYCONNECTION&result_var=3DRES-STOCK]
select T3Q_NEXTDUE, T3Q_TOTAL, T3Q_OL, T3Q_CN, T3Q_MP, = T3Q_SY, T3Q_ME
from t3stock
WHERE T3Q_ILC =3D "[ITEMLOOKUPCODE]"
[/SQLExecute]

Then get the results = from the query:

[SQLResult result_ref=3DRES-STOCK][!]
= [/!][FOUNDITEMS][!]
= [/!][TEXT]STOCK_NEXTDUE=3D[T3Q_NEXTDUE][/TEXT][!]
= [/!][TEXT]STOCK_TOTAL=3D[T3Q_OL][/TEXT][!]
= [/!][TEXT]STOCK_OL=3D[T3Q_OL][/TEXT][!]
= [/!][TEXT]STOCK_CN=3D[T3Q_CN][/TEXT][!]
= [/!][TEXT]STOCK_MP=3D[T3Q_MP][/TEXT][!]
= [/!][TEXT]STOCK_SY=3D[T3Q_SY][/TEXT][!]
= [/!][TEXT]STOCK_ME=3D[T3Q_ME][/TEXT][!]
= [/!][/FOUNDITEMS][!]
[/!][/SQLResult]






Kind regards

Stuart Tremain
IDFK Web Developments
AUSTRALIA





On 5 Apr 2015, at 10:20, Keith Scarzafava <keith@scarzafava.com> wrote:

I=E2=80=99v= e been trying to get my WebDNA to connect to MySQL and have not been = able to do so with version (6.2 with Centos5) or version (8.0 with = Centos6).  I posted in the regular forums and was advised to try = here.  Basically, I started out on my 6.2 WebDNA server and = followed the setup directions for the DSN setup which, I can connect to = my MySQL via a DSN with isql and perform queries and such.  If I = try to use WebDNA, I get the error: MySQL not supported.  If I = tried to use the SQLCONNECT method I get the error: INVALID VALUE (MySQL) FOR PARAMETER: = type.
 
After a couple of postings in the forums, I was told I = don=E2=80=99t need to use the DSN method because WebDNA supports MySQL = natively (though I tried both method).  I then figured, I would = give it a try on my version 8 WebDNA server and, I still am getting the = same exact messages.  I=E2=80=99ve been sifting through any = postings I can find and I can=E2=80=99t find any form of resolution.
 
Any help = is greatly appreciated.
 
KS
 
 
--------------------------------------------------------- = This message is sent to you because you are subscribed to the mailing = list . To unsubscribe, = E-mail to: archives: http://mail.webdna.us/list/talk@webdna.us Bug Reporting: support@webdna.us

= --Apple-Mail=_BF8C4835-7B6F-4177-9809-C161F5D96C3F-- Associated Messages, from the most recent to the oldest:

    
  1. Re: [WebDNA] Cannot get WebDNA and MySQL working. (Donovan Brooke 2015)
  2. RE: [WebDNA] Cannot get WebDNA and MySQL working. ("Keith Scarzafava" 2015)
  3. Re: [WebDNA] Cannot get WebDNA and MySQL working. (Donovan Brooke 2015)
  4. Re: [WebDNA] Cannot get WebDNA and MySQL working. (Donovan Brooke 2015)
  5. RE: [WebDNA] Cannot get WebDNA and MySQL working. ("Keith Scarzafava" 2015)
  6. Re: [WebDNA] Cannot get WebDNA and MySQL working. (Donovan Brooke 2015)
  7. Re: [WebDNA] Cannot get WebDNA and MySQL working. (Donovan Brooke 2015)
  8. RE: [WebDNA] Cannot get WebDNA and MySQL working. ("Keith Scarzafava" 2015)
  9. Re: [WebDNA] Cannot get WebDNA and MySQL working. (Stuart Tremain 2015)
  10. RE: [WebDNA] Cannot get WebDNA and MySQL working. ("Keith Scarzafava" 2015)
  11. Re: [WebDNA] Cannot get WebDNA and MySQL working. (Stuart Tremain 2015)
  12. [WebDNA] Cannot get WebDNA and MySQL working. ("Keith Scarzafava" 2015)
--Apple-Mail=_BF8C4835-7B6F-4177-9809-C161F5D96C3F Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=utf-8 Keith This example may help First make your MySQL connection: In this case I use an external DB, you could put in localhost, etc [SQLConnect = dbType=3DMySQL&host=3Ddb.mydomain.com&database=3Dmydatabase&uid=3Dusername= &pwd=3Dpassword&conn_var=3DMYCONNECTION][/SQLConnect] Then using the variable MYCONNECTION I do the query: Here the results are held in a variable names RES-STOCK [SQLExecute conn_ref=3D MYCONNECTION&result_var=3DRES-STOCK] select T3Q_NEXTDUE, T3Q_TOTAL, T3Q_OL, T3Q_CN, T3Q_MP, T3Q_SY, T3Q_ME from t3stock WHERE T3Q_ILC =3D "[ITEMLOOKUPCODE]" [/SQLExecute] Then get the results from the query: [SQLResult result_ref=3DRES-STOCK][!] [/!][founditems][!] [/!][text]STOCK_NEXTDUE=3D[T3Q_NEXTDUE][/TEXT][!] [/!][text]STOCK_TOTAL=3D[T3Q_OL][/TEXT][!] [/!][text]STOCK_OL=3D[T3Q_OL][/TEXT][!] [/!][text]STOCK_CN=3D[T3Q_CN][/TEXT][!] [/!][text]STOCK_MP=3D[T3Q_MP][/TEXT][!] [/!][text]STOCK_SY=3D[T3Q_SY][/TEXT][!] [/!][text]STOCK_ME=3D[T3Q_ME][/TEXT][!] [/!][/FOUNDITEMS][!] [/!][/SQLResult] Kind regards Stuart Tremain IDFK Web Developments AUSTRALIA webdna@idfk.com.au > On 5 Apr 2015, at 10:20, Keith Scarzafava = wrote: >=20 > I=E2=80=99ve been trying to get my WebDNA to connect to MySQL and have = not been able to do so with version (6.2 with Centos5) or version (8.0 = with Centos6). I posted in the regular forums and was advised to try = here. Basically, I started out on my 6.2 WebDNA server and followed the = setup directions for the DSN setup which, I can connect to my MySQL via = a DSN with isql and perform queries and such. If I try to use WebDNA, I = get the error: MySQL not supported. If I tried to use the SQLCONNECT = method I get the error: INVALID VALUE (MySQL) FOR PARAMETER: type. > =20 > After a couple of postings in the forums, I was told I don=E2=80=99t = need to use the DSN method because WebDNA supports MySQL natively = (though I tried both method). I then figured, I would give it a try on = my version 8 WebDNA server and, I still am getting the same exact = messages. I=E2=80=99ve been sifting through any postings I can find and = I can=E2=80=99t find any form of resolution. > =20 > Any help is greatly appreciated. > =20 > KS > =20 > =20 > --------------------------------------------------------- This message = is sent to you because you are subscribed to the mailing list . To = unsubscribe, E-mail to: archives: = http://mail.webdna.us/list/talk@webdna.us = Bug Reporting: = support@webdna.us --Apple-Mail=_BF8C4835-7B6F-4177-9809-C161F5D96C3F Content-Transfer-Encoding: quoted-printable Content-Type: text/html; charset=utf-8 Keith

This = example may help

First make your MySQL connection:
In = this case I use an external DB, you could put in localhost, = etc

[SQLConnect = dbType=3DMySQL&host=3Ddb.mydomain.com&database=3Dmydatabase&uid=3Dusernam= e&pwd=3Dpassword&conn_var=3DMYCONNECTION][/SQLConnect]

Then using the variable = MYCONNECTION I do the query:
Here the results are = held in a variable names RES-STOCK

[SQLExecute = conn_ref=3D MYCONNECTION&result_var=3DRES-STOCK]
select T3Q_NEXTDUE, T3Q_TOTAL, T3Q_OL, T3Q_CN, T3Q_MP, = T3Q_SY, T3Q_ME
from t3stock
WHERE T3Q_ILC =3D "[ITEMLOOKUPCODE]"
[/SQLExecute]

Then get the results = from the query:

[SQLResult result_ref=3DRES-STOCK][!]
= [/!][text]STOCK_NEXTDUE=3D[T3Q_NEXTDUE][/TEXT][!]
= [/!][text]STOCK_TOTAL=3D[T3Q_OL][/TEXT][!]
= [/!][text]STOCK_OL=3D[T3Q_OL][/TEXT][!]
= [/!][text]STOCK_CN=3D[T3Q_CN][/TEXT][!]
= [/!][text]STOCK_MP=3D[T3Q_MP][/TEXT][!]
= [/!][text]STOCK_SY=3D[T3Q_SY][/TEXT][!]
= [/!][text]STOCK_ME=3D[T3Q_ME][/TEXT][!]
= [/!][/FOUNDITEMS][!]
[/!][/SQLResult]






Kind regards

Stuart Tremain
IDFK Web Developments
AUSTRALIA





On 5 Apr 2015, at 10:20, Keith Scarzafava <keith@scarzafava.com> wrote:

I=E2=80=99v= e been trying to get my WebDNA to connect to MySQL and have not been = able to do so with version (6.2 with Centos5) or version (8.0 with = Centos6).  I posted in the regular forums and was advised to try = here.  Basically, I started out on my 6.2 WebDNA server and = followed the setup directions for the DSN setup which, I can connect to = my MySQL via a DSN with isql and perform queries and such.  If I = try to use WebDNA, I get the error: MySQL not supported.  If I = tried to use the SQLCONNECT method I get the error: INVALID VALUE (MySQL) FOR PARAMETER: = type.
 
After a couple of postings in the forums, I was told I = don=E2=80=99t need to use the DSN method because WebDNA supports MySQL = natively (though I tried both method).  I then figured, I would = give it a try on my version 8 WebDNA server and, I still am getting the = same exact messages.  I=E2=80=99ve been sifting through any = postings I can find and I can=E2=80=99t find any form of resolution.
 
Any help = is greatly appreciated.
 
KS
 
 
--------------------------------------------------------- = This message is sent to you because you are subscribed to the mailing = list . To unsubscribe, = E-mail to: archives: http://mail.webdna.us/list/talk@webdna.us Bug Reporting: support@webdna.us

= --Apple-Mail=_BF8C4835-7B6F-4177-9809-C161F5D96C3F-- Stuart Tremain

DOWNLOAD WEBDNA NOW!

Top Articles:

Talk List

The WebDNA community talk-list is the best place to get some help: several hundred extremely proficient programmers with an excellent knowledge of WebDNA and an excellent spirit will deliver all the tips and tricks you can imagine...

Related Readings:

Type 2 errors with WebCatalog.acgi (1997) lineitem variables (1999) Store Builder, technical infos (1998) when to use SQL over webcat? (2000) The beginning (1997) Fuzzy on [url] context (1998) show all problem (1997) Double Spacing in Mails from Sendmail (2002) [WriteFile] problems (1997) RE: Can't get appendfile to work (1997) Sorting a [listfiles] (2003) OT: Verbose messages - Web*4.2 (2000) Nested search (1997) REPOST... Incompatibility with WebCat 3 templates ... (2000) WebCat2b13MacPlugIn - [include] doesn't allow creator (1997) Multiple SSL Keys (1998) restarting webcatalog (2002) Search Criteria (2000) [Announce] Newest Commerce Site based on WebCatalog (1997) Re:quit command on NT (1997)