0

I am using mysql_pconnect() for connecting to mysql. But when many users uses the website it gives the error "To many connection with mysql".

For that i had set the variables max_connections=500 max_user_connections=1000 in my.cnf file of mysql.

Is this fine to use or is there any other way to solve this problem ("To many connection with mysql").

I am using the xampp for php and mysql.

Sandip Karanjekar
  • 850
  • 1
  • 6
  • 23
  • You may use ZendServer CE with ZendFramework which have connection pool.There are no such problems like this.. – rkosegi Apr 17 '12 at 11:45

1 Answers1

1

That is the way to increase the max connections. You can refer here for more insights and as for using mysql_pconnect have a read here

Community
  • 1
  • 1
Sami
  • 3,926
  • 1
  • 29
  • 42