PDA

View Full Version : connection to MySQL server


toxix
12-15-2003, 06:31 PM
Can you connect to a mysql server with the same user more than one time at the same time and all sessions to be different? I want to write a C program who creates several child procesess and in each child there will be a connection to a mysql server and want to now if I have to connect from each child using a different user or I can use one user for all and the sessions to be different.

raf
12-15-2003, 08:43 PM
I never used C with mySQL, but i don't think your setup is differnt from the webserver - mySQL-server connection.
You there also use the same useraccount for each parsed page that needs a connection. (which can result in hundreds of simultanious connections with the same user)

toxix
12-16-2003, 12:47 AM
10x :thumbsup: