reset password
Author Message
cysun
Posts: 2935
Posted 18:13 Mar 11, 2013 |

There's a limit on the maximum concurrent connections to a MySQL server. The limit for the MySQL server on CS3 is 301 (was 151), which should be more than enough for the two CS320 sections we have. The key is to remember to close a db connection in your code after you are done with it. The coding error by one person could use up all the concurrent connections so be rigorous about closing connections.

cysun
Posts: 2935
Posted 19:54 Mar 11, 2013 |

I also set the max connections per user to 5, so now one person's bad code shouldn't affect other people.