Problem with many connections
Posted by:
phil none
Date: August 01, 2005 09:46AM
Hi,
I have the following problem:
I do something like:
while(1)
{
conn = mysql_init(NULL);
if (mysql_real_connect(...)
if(mysql_query (conn, "SELECT * FROM xyz") != 0)
fprintf(stderr, "mysql_query() failed\n");
else
{
res_set = mysql_store_result (conn);
//print the results...
}
mysql_close (conn);
// do sth else which takes about 1 sek,
// then begin and init new connection
}
After a few minutes the sqlserver crashes and I can no longer connect until I restarted it. Can you help me please?
Thanks in advance
Subject
Views
Written By
Posted
Problem with many connections
727
August 01, 2005 09:46AM
407
August 08, 2005 02:28AM
Sorry, you can't reply to this topic. It has been closed.
Content reproduced on this site is the property of the respective copyright holders.
It is not reviewed in advance by Oracle and does not necessarily represent the opinion
of Oracle or any other party.