![]() |
MySQL Error
HELP!!! Could someone help me please.
I get 4-10 of these errors daily. It got so bad one day that my site crashed. Any advice? I contact my service provider and they told me that it has to do with viewing permissions. I have no idea what to do. Anything would be of help. Database error in vBulletin : mysql_pconnect() [<a href='function.mysql-pconnect'>function.mysql-pconnect</a>]: Can't connect to MySQL server on '205.178.146.86' (4) /data/17/1/119/19/1608182/user/1733015/htdocs/fhc/includes/class_core.php on line 314 MySQL Error : Error Number : Request Date : Tuesday, May 10th 2011 @ 12:56:28 PM Error Date : Tuesday, May 10th 2011 @ 12:57:29 PM Script : http://www.fantasyhockeycoach.com/cr...and=1305046463 Referrer : http://fantasyhockeycoach.com/ IP Address : 209.121.214.47 Username : Classname : vB_Database MySQL Version : |
What is the host service you are using? root or reseller hosting..
host of the web address from the control panel phpmyadmin , select the repair database tables. If you enter the following command from the ssh server authority. Code:
mysqlcheck -u root -p --auto-repair --check --optimize --all-databases Code:
service mysql stop |
Where would I enter that code? What does that do? How often should I repair or optimize the tables? Sorry still new to mysql
--------------- Added [DATE]1305221894[/DATE] at [TIME]1305221894[/TIME] --------------- I am using 50 of 300 MB is that enough or do I need more disk space? |
You have enough disc space. When did this start to happen for the first time? Did you install any mod or did any other modifications to your forum before the error popped up?
|
it started 6 or 7 months ago. i don't think i install or did any other modifications
|
I got this reply from my host:
The error you are reporting is due to too many active connections to your MySQL database. If you are using mysql_pconnect(), this type of connection never closes. It is a persistent connection that stays open for later use. This can easily cause you to have too many active connections depending on how many people visit the website. We suggest you change it to mysql_connect() instead if you are using this. If you are using mysql_connect(), you may not be closing the database connection at the end of a query, please check that all connections are closed after use. Does that make sense? Where do I make those changes? Is this something I change on the config.php file? |
What is this set to in your config.php file?
PHP Code:
|
I have it set at 0
|
Who is your hosting company?
|
network solutions
|
Ask then what you max db connections is set to.
|
thanks for all your help so far. I have two more questions:
1. In the config.php file under master database server name, what is the difference if I put in the servername compared to IP address? Does it change anything if I use one or the other? 2. What is a slave database? --------------- Added [DATE]1305652716[/DATE] at [TIME]1305652716[/TIME] --------------- Quote:
|
Quote:
Quote:
My max_connections are set to 300, but I am on a VPS, and that is probably overkill. Hostagator has their shared accounts set to 25, IIRC. |
Quote:
My max is 10. So what does that mean? |
It means you need to get a new host. If you get very many users on at the same time, you will keep having those kinds of errors.
|
I got 100 VB Database errors yesterday and might site wasn't showing up. I got another 20+ today.
My host shows I am only using 58 of my 300 mb. Would adding another 1000MB help reduce these errors or should I be looking for a new host? |
All times are GMT. The time now is 08:04 PM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|