Warning: mysql_connect(): Too many connections

There's more people visiting my page today than normal and I have been getting this message today. How is it that I can avoid this? I dont know if it's a cap imposed by my hosting service or if perhaps i should be coding differently. I always use mysql_connect($host,$user,$pass); to connect to my mysql databases. I use this several times throughout my code on any given page. Is this a pad practice? Any help would be much appreciated. thanks. -B

    Hi,
    mysql has a parameter called max_connection (default=100, i think...) but i don't know if you can modify it from script.
    Use "show variables" query to get info.
    Try to look in the manual for more help.

    However, congratulations !😃

    My sites are used to get 100 contact only after a whole day 🙁

    see you

      Write a Reply...