Catch MySQL Connection error

This WebDNA talk-list message is from

2005


It keeps the original formatting.
numero = 60866
interpreted = N
texte = Hi all Has anybody found a way to catch a MySQL Connection error? I don=E2= =80=99t see anything in the docs. The goal is to see if a connection to the server could be establi= shed or not. So far if I have a wrong connection and I issue a [s= qlconnect] I receive this: ERROR: MySQL DATABASE CONNECTION FAILED! - Unknown MySQL Server H= ost '127.0.0.' (0) ERROR: COULD NOT FIND SQLCONNECT VARIABLE "con= n1". - Subsequent SQL commands attempting to use that result ID will f= ail. TIA. Nitai -- Redakto - Content Management that simply works Content Management & eBusiness Systems =C2=A0 ComputerOil=C2=AE AG Dammstrasse 7 5400 Baden / Switzerland Telefon +41 (0)844 44 55 66 =C2=A0 info@computeroil.com http://computeroil.com =C2=A0 ------------------------------------------------------------- This message is sent to you because you are subscribed to the mailing list . To unsubscribe, E-mail to: To switch to the DIGEST mode, E-mail to Web Archive of this list is at: http://webdna.smithmicro.com/ Associated Messages, from the most recent to the oldest:

    
  1. Re: Catch MySQL Connection error ( "Nitai @ ComputerOil" 2005)
  2. Re: Catch MySQL Connection error ( Larry Hewitt 2005)
  3. Catch MySQL Connection error ( "Nitai @ ComputerOil" 2005)
Hi all Has anybody found a way to catch a MySQL Connection error? I don=E2= =80=99t see anything in the docs. The goal is to see if a connection to the server could be establi= shed or not. So far if I have a wrong connection and I issue a [s= qlconnect] I receive this: ERROR: MySQL DATABASE CONNECTION FAILED! - Unknown MySQL Server H= ost '127.0.0.' (0) ERROR: COULD NOT FIND SQLCONNECT VARIABLE "con= n1". - Subsequent SQL commands attempting to use that result ID will f= ail. TIA. Nitai -- Redakto - Content Management that simply works Content Management & eBusiness Systems =C2=A0 ComputerOil=C2=AE AG Dammstrasse 7 5400 Baden / Switzerland Telefon +41 (0)844 44 55 66 =C2=A0 info@computeroil.com http://computeroil.com =C2=A0 ------------------------------------------------------------- This message is sent to you because you are subscribed to the mailing list . To unsubscribe, E-mail to: To switch to the DIGEST mode, E-mail to Web Archive of this list is at: http://webdna.smithmicro.com/ "Nitai @ ComputerOil"

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:

GetWords (2004) WebSite and *NO* Authentication Dialog Box!!? (1998) shownext (1997) RE: Automatic Forwarding using WebCat (1997) Add message to Order (1997) Re2: frames & carts (1997) Paths, relative paths, webstar server setup and security (1997) WebCatb15 Mac CGI -- [purchase] (1997) HTML Editors (1997) Multiple Choices in One Entry - Clothing Sizes (2000) New public beta available (1997) Cyberstudio and WebDNA (1997) Seeking Better Display of results... (1997) Playin Tricks (2006) Cookies and WebCat?? (1999) Appending current [date] to a database (1997) Summing fields (1997) WebCat2 - [format thousands] (1997) Linux WebCatalog on Apache w/ Raven SSL (2000) RE: OK, here goes... (1997)