k4pil Posted March 21, 2006 Share Posted March 21, 2006 Hi there ppl.I have just tried to access my website and i get an error. Iv not viewed it for a few days. The error i am getting is;Warning: mysql_connect(): Too many connections in /home/kapi7150/public_html/connect.php on line 7Unable to select databaseThe file connect.php is included in the php script.Its as below;[code]<?php$username = "####"; $password = "####"; $database = "####"; mysql_connect("localhost",$username,$password); @mysql_select_db($database) or die( "Unable to select database"); ?>[/code]Ive never had this problem before...so am totally stuck. No idea where to look. Any help??? Link to comment https://forums.phpfreaks.com/topic/5450-urgent-help-needed/ Share on other sites More sharing options...
Caesar Posted March 22, 2006 Share Posted March 22, 2006 One likely scenario could be that you are on a shared hosting account that sits on a server that is being swamped with MySQL queries/requests, and it is only temporarily giving you this error. Link to comment https://forums.phpfreaks.com/topic/5450-urgent-help-needed/#findComment-19518 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.