Mysql (can't Connect, Too Many Connections) |
||
Welcome to the Zymic webmaster forums. Our forums are here to provide people the free ability to discuss a range of websites related topics such as design, development coding and marketing.
In order to post you will need to register for a zymic account or if you already have one simply login by using the form on the left.
Zymic Webmaster Forums Zymic Free Web Hosting Databases & MySQL |
||
Mysql (can't Connect, Too Many Connections) |
||
Apr 16 2011, 12:00 AM
Post
#1
|
|
|
Newbie ![]() Group: Members Posts: 2 Joined: 15-April 11 Member No.: 186,656 |
So that's the error log :
QUOTE Can't connect to database! Too many connections Line 114 : mysql.class.php Normally, in morning to evening, my database works fine, and i can access to my website, but, in the night, i can't access to it (the page loads eternally) and 1 or 2 hours after, i got the error. Yesterday, it works fine at 07:50:06 (France time), so the error continued from the night, to 7h. Please help me, i have some visitors in the night ! Thank you. (ans sorry for my bad english) |
|
|
![]() |
Jul 6 2011, 07:05 AM
Post
#2
|
|
|
Ninja ![]() ![]() ![]() Group: Members Posts: 104 Joined: 27-June 11 Member No.: 196,019 |
use this code
<?php // Connects to Our Database mysql_connect("your.hostaddress.com", "username", "password") or die(mysql_error()); mysql_select_db("Database_Name") or die(mysql_error()); ?> Now, whenever we need to connect to our database, we just include this line in our PHP file: //MySQL Database Connect include 'datalogin.php'; |
|
|
The_Boss Mysql (can't Connect, Too Many Connections) Apr 16 2011, 12:00 AM
ssfdre38 can you please show line 114 so we can see what th... Apr 17 2011, 04:22 PM
The_Boss Hi .
112 : if($errors_management)
113 : {
11... Apr 18 2011, 12:51 AM ![]() |
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users) |
||
| 0 Members: | ||
Forum Jump |
||
| Lo-Fi Version | Time is now: 23rd May 2013 - 12:22 PM |