chicken-users
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Chicken-users] mysql check connection


From: Daishi Kato
Subject: [Chicken-users] mysql check connection
Date: Fri, 16 May 2008 19:38:37 +0900
User-agent: Wanderlust/2.15.6 (Almost Unreal) Emacs/21.4 Mule/5.0 (SAKAKI)

Hi, 

I was wondering if there's a procedure like mysql-closed?
because I'd like to know if a connection is alive or not.
Hoping mysql-ping does the job, but giving me a segfault.

Any workaround for this?
Thanks,
Daishi

CHICKEN
(c)2008 The Chicken Team
(c)2000-2007 Felix L. Winkelmann
Version 3.2.0 - linux-unix-gnu-x86      [ manyargs dload ptables applyhook ]
SVN rev. 10664  compiled 2008-05-16 on ganglia (Linux)

#;1> (use mysql)
; loading /usr/local/chicken-3.2.0/lib/chicken/3/mysql.so ...
#;2> (define x (mysql-connect 'host: "192.168.1.130" 'user: "root" 'passwd: 
"mahoroba0712" 'db: "tcwebif"))
#;3> (mysql-ping x)
0
#;4> (mysql-close x)
#;5> (mysql-ping x)
zsh: segmentation fault (core dumped) 




reply via email to

[Prev in Thread] Current Thread [Next in Thread]