Getting Error Too Many Connections In MySQL

I am running a PHP/MySQL script on my laptop via localhost on XAMPP. I got an error too many connections code 1040. I cannot see the error in my script. I have configured the local host server correctly, and it is working fine with other PHP scripts. Please help.

