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:

[WebDNA] Last WSC shares for sale! (2009) Can't Update records (1997) Jimmy (1998) $Append for Users outside the ADMIN group (1997) TemplateCacheSize preference (1998) A quickie question (1997) MasterCounter Help (1998) WebCatalog/WebMerchant 2.1 (1998) macosx 1 process, linux N processes, macosx chokes under load (2001) Still can't upgrade users.db to 2.1.1 (1998) emailer (1997) Need relative path explanation (1997) webcat- multiple selection in input field (1997) problems with WebCat-Plugin () Using [Include] Context (1999) Has anyone built this already? (2003) setitems, one more thing (1997) WebCat editing, SiteGuard & SiteEdit (1997) WebCatalog Plug-in for Webstar. (1997) Bug Report, maybe (1997)