View Full Version : MySQL Errors?
Dj Smuggla
11-30-2010, 11:49 AM
I've just moved servers & i've receved a lot of these errors:
Database error in vBulletin :
mysql_connect() [<a href='function.mysql-connect'>function.mysql-connect</a>]: Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (2)
/home/thebadc/public_html/mydomain.com/includes/class_core.php on line 311
MySQL Error :
Error Number :
Request Date : Tuesday, November 30th 2010 @ 02:33:13 PM
Error Date : Tuesday, November 30th 2010 @ 02:33:13 PM
Script : http://www.mydomain.com/archive/index.php/t-17056.html
Referrer :
IP Address : **.2*9.**.1*0
Username :
Classname : vB_Database
MySQL Version :
Does anyone know how to fix it?
Lynne
11-30-2010, 02:15 PM
This is a server issue and you'll have to talk to your host about it.
See this page for the causes of this error: http://www.vbulletin.com/docs/html/cantconnect
Dj Smuggla
11-30-2010, 09:37 PM
Thanks, i've just set up a support ticket.
I just got this error now, trying to view a forum via my browser:
Database error in vBulletin 3.8.6:
Invalid SQL:
SELECT
IF(votenum >= 1, votenum, 0) AS votenum,
IF(votenum >= 1 AND votenum > 0, votetotal / votenum, 0) AS voteavg,
post.pagetext AS preview,post.thankscache,
thread.threadid, thread.title AS threadtitle, thread.forumid, pollid, open, postusername, postuserid, thread.iconid AS threadiconid,
thread.dateline, notes, thread.visible, sticky, votetotal, thread.attach, thread.lastpost, thread.lastposter, thread.lastpostid, thread.replycount, IF(thread.views<=thread.replycount, thread.replycount+1, thread.views) AS views,
thread.prefixid, thread.taglist, hiddencount, deletedcount
, NOT ISNULL(subscribethread.subscribethreadid) AS issubscribed
, deletionlog.userid AS del_userid, deletionlog.username AS del_username, deletionlog.reason AS del_reason
, threadredirect.expires
Do you know what that means.
Lynne
11-30-2010, 10:11 PM
We need to see the whole error, not just the sql statement.
Dj Smuggla
12-01-2010, 01:56 PM
How do i get the whole error, that's all it give me.
Also my host said that the problem is that my sites to big for shared hosting, but i had a shared hosting account on my last server & i never had any problems.
They give me a link to upgrade to a VPS server, but do you think there just trying to get more money out of me?
Thanks
Lynne
12-01-2010, 02:01 PM
There should be something on the bottom of that error like this:
The actual mysql query/code/problem....
MySQL Error : some sort of something here
Error Number : another something here
Date : Sunday, April 13th 2008 @ 11:16:43 AM
Script : http://address.path.path/page.php
Referrer :
IP Address : **.***.**.***
Username : username
Classname : database
Dj Smuggla
12-01-2010, 02:22 PM
Heres the latest error i've been emailed: (1000's of them)
Invalid SQL:
SELECT *
FROM datastore
WHERE title IN ('','options','bitfields','attachmentcache','forum cache','usergroupcache','stylecache','languagecach e','products','pluginlist','cron','profilefield',' loadcache','noticecache','smiliecache','bbcodecach e','mailqueue','bookmarksitecache');
MySQL Error : Can't find file: './thebadc_db/datastore.frm' (errno: 13)
Error Number : 1017
Request Date : Wednesday, December 1st 2010 @ 05:09:05 PM
Error Date : Wednesday, December 1st 2010 @ 05:09:05 PM
Script : http://www.domain.com/showthread.php?p=42666
Referrer :
IP Address : 66.249.66.133
Username :
Classname : vB_Database
MySQL Version :
Another one:
Database error in vBulletin 3.8.6:
Invalid SQL:
SELECT calendarpermission.usergroupid, calendarpermission.calendarpermissions,calendar.ca lendarid,calendar.title, displayorder
FROM calendar AS calendar
LEFT JOIN calendarpermission AS calendarpermission ON
(calendarpermission.calendarid = calendar.calendarid AND usergroupid IN (1))
ORDER BY displayorder ASC;
MySQL Error : Can't find file: './thebadc_db/calendar.frm' (errno: 13)
Error Number : 1017
Request Date : Wednesday, December 1st 2010 @ 03:27:07 PM
Error Date : Wednesday, December 1st 2010 @ 03:27:07 PM
Script : http://www.domain.com/calendar.php?c=1&week=1775347200
Referrer :
IP Address : 66.249.66.133
Username : Unregistered
Classname : vB_Database
MySQL Version :
And now my site wont load at all.
Lynne
12-01-2010, 04:29 PM
You need to repair your tables. Do it via phpMyAdmin or whatever interface you have to your database. 3 ways to repair a database (http://www.vbulletin.com/forum/showthread.php?44909-3-ways-to-repair-a-database)
Although, looking at those again.... are you sure your imported the full database from your other site?
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.