Jump to content

Archived

This topic is now archived and is closed to further replies.

k4pil

URGENT HELP NEEDED

Recommended Posts

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 7
Unable to select database

The 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???

Share this post


Link to post
Share on other sites
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.

Share this post


Link to post
Share on other sites

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.