PDA

View Full Version : Database Error Need help..


Khalid-B
08-17-2007, 09:33 PM
Hello.
I am getting data base error when some one come from other sites .
when some one search my Forum from Google and try to acess than some times get error and some times not , here is error messege that i am receving in my Email box.

Database error in vBulletin 3.6.8:

Invalid SQL:

INSERT INTO referrers
(url, count, title)
VALUES
('google.co.uk%2Fsearch%3Fq%3Dvioh.com%26hl%3Den%2 6start%3D10%26sa%3DN', 1, 'vioh.com+-+Google+Search');

MySQL Error : Duplicate entry 'google.co.uk%2Fsearch%3Fq%3Dvioh.com%26hl%3Den%26 start%3D10%26sa%3DN' for key 1
Error Number : 1062
Date : Friday, August 17th 2007 @ 01:55:56 PM
Script : http://www.mysite.com/Forums/showthread.php?p=4421
Referrer : http://www.google.co.uk/search?q=vioh.com&hl=en&start=10&sa=N
IP Address :xxxxxxx
Username : Unregistered
Classname : vb_database


Please help .
Thanks in advance.

Antivirus
08-17-2007, 09:42 PM
Looks like someone's trying to hack your site

Khalid-B
08-17-2007, 09:49 PM
i dont know may be . i am getting this error after moving my database to a new domine .
I got this error 100 times and always diffirent IP,s and diffirent site reffers.
If some one trying to hack than what should i have to do to handle this ?
Or any thing
Thanks

goetting more errors now , recently got this one ..

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/xxxxx/public_html/Forums/includes/class_core.php on line 274


Please guys help me .
Thanks

Dismounted
08-18-2007, 05:22 AM
Regarding the first error, it is caused by a hack inserting data with the same key. You should ask the modification author for help.
Regarding the second error, it seems that your MySQL server is down, check with your host.

Khalid-B
08-18-2007, 07:05 AM
Thanks a lot Dismounted for help.
should i chck all hacks step by step ? or
Can you tell me wich hack is ? (If possible)

Thanks

Dismounted
08-18-2007, 08:53 AM
It's a hack related to referrers, that's all I know.

Paul M
08-18-2007, 09:23 AM
Either a hack specific to referrers, or a generic stats hack.

Khalid-B
08-18-2007, 10:13 AM
thanks a lot man ,,, i disabled that hack and tafter that till now every thing ok .

Thanks again.