mysqlclose doesnt work

Help for those learning Tcl or writing their own scripts.
Post Reply
s
stenen
Voice
Posts: 7
Joined: Fri Apr 27, 2007 5:12 pm

mysqlclose doesnt work

Post by stenen »

I'm having problems with mysqlclose, and it's resulting in a lot of users not "logging off" mysql.

set g [mysqlconnect -host localhost -user user -password pass -db db]
mysqluse $g db

mysqlclose $g

that piece of code should do it right?

anyhow, the users that dont log off is running the command "sleep", and it becomes quite a list in the end, which results in "Too many connection" in the db
Post Reply