Wednesday, March 17, 2010

You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '' at line 1

Database error in vBulletin 3.6.10:

Invalid SQL:
SELECT COUNT(threadid) AS total FROM thread WHERE postuserid=;

MySQL Error : You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '' at line 1
Error Number : 1064
Date : Wednesday, May 14th 2008 @ 10:41:12 AM
Script : http://sky-des.com/forum/external.php
Referrer :
IP Address : 72.14.199.117
Username : ÛíÑ ãÓÌá
Classname : vB_डाटाबेस


Solve the problem


Here you have a member cause a problem, I mean name you dear Look

ÛíÑ ãÓÌá

UPDATE `user` SET `username` = 'xxx' WHERE `user`.`username` ='ÛíÑ ãÓÌá' LIMIT 1 ;


For information claimed changed the name of the member b xxx
After your best friends do the फोल्लोविंग

http://www.traidnt.net/vb/showpost.p...postcount=6636

Unknown column 'title' in 'order clause'

Invalid SQL:
SELECT * FROM product ORDER BY title;

MySQL Error : Unknown column 'title' in 'order clause'
Error Number : 1054Date : Monday, April 7th 2008 @ 08:34:56 PM
Script
: http://www.*******.com/vb/admincp/index.php?do=home
Referrer : http://www.********.com/vb/admincp/index.php
IP Address : 212.71.37.108
Username
: xxx
Classname
: vb_database


Solve the problem

Alter table `profilefield` add `title` varchar(50) NOT NULL default '';

Unknown column 'infractiongroupid' in 'field list'

Database error in vBulletin 3.6.8:

Invalid SQL:

SELECT
user
.username, (user.options & 512) AS invisible, user.usergroupid,
session.userid, session.inforum, session.lastactivity,
IF(
displaygroupid=0, user.usergroupid, displaygroupid) AS displaygroupid, infractiongroupid
FROM session
AS session
LEFT JOIN user
AS user ON(user.userid = session.userid)
WHERE session.lastactivity > 1207340538
ORDER BY username ASC
;

MySQL Error : Unknown column 'infractiongroupid' in 'field list'
Error Number : 1054
Date
: Saturday, April 5th 2008 @ 12:37:18 AM
Script
: http://.com/vb4/
Referrer :
IP Address :
Username : Unregistered
Classname
: vb_database

Solve the problem


ALTER TABEL user ADD `infractiongroupid` smallint(5) unsigned NOT NULL default '0';


Table 'access' already exists

Database error in vBulletin :
Invalid SQL:
CREATE TABLE access (
userid INT UNSIGNED NOT NULL DEFAULT '0',
forumid SMALLINT UNSIGNED NOT NULL DEFAULT '0',
accessmask SMALLINT UNSIGNED NOT NULL DEFAULT '0',
PRIMARY KEY userid (userid, forumid)
);
MySQL Error : Table 'access' already exists
Error Number
: 1050
Request Date
: Monday, November 16th 2009 @ 09:42:15 PM
Error Date
: Monday, November 16th 2009 @ 09:42:15 PM
Script
:......
Referrer :......
IP Address :.......
Username :
Classname : vB_Database
MySQL Version
: 5.0.81-community


Solve the problems


DELETE FROM access;
CREATE TABLE `access` (
`
userid` int(10) unsigned NOT NULL default '0',
`
forumid` smallint(5) unsigned NOT NULL default '0',
`
accessmask` smallint(5) unsigned NOT NULL default '0',
PRIMARY KEY (`userid`,`forumid`)
)
ENGINE=InnoDB DEFAULT CHARSET=latin1;

sql to activate and stop the Members options, control panel administration and other - courtesy of the developer

1 - allow the use of icons themes

- Is growing operation

UPDATE forum SET options = options + 1024 WHERE NOT (options & 1024);




- Ordered the suspension cultivation

forum SET options = options - 1024 WHERE options & 1024;




2 - To allow assessment of subjects

- Is growing operation

UPDATE forum SET options = options + 2048 WHERE NOT (options & 2048);




- Ordered the suspension cultivation

UPDATE forum SET options = options - 2048 WHERE options & 2048;




3 - Showing Avatars

- Is growing operation

UPDATE user SET options = options + 2 WHERE NOT (options & 2)




- Ordered the suspension cultivation

UPDATE user SET options = options - 2 WHERE options & 2




4 - View signatures

- Is growing operation

UPDATE user SET options = options + 1 WHERE NOT (options & 1)




- Ordered the suspension cultivation

user SET options = options - 1 WHERE options & 1




5 - View Photo

- Is growing operation

UPDATE user SET options = options + 4 WHERE NOT (options & 4)




- Ordered the suspension cultivation

UPDATE user SET options = options - 4 WHERE options & 4




6 - Activating the members of the palace

- Is growing ऑपरेशन

user

SET options = options + 8 WHERE NOT (options & 8) UPDATE user SET options = options + 8 WHERE NOT (options & 8)




- ordered the suspension cultivation

user SET options = options - 8 WHERE options & 8




7 - Receiving messages from and to the Director-General

- Is growing operation

user SET options = options + 16 WHERE NOT (options & 16)




- Ordered the suspension cultivation


user SET options = options - 16 WHERE options & 16




8 - Show e-mail Member

- Is growing operation

UPDATE user SET options = options + 256 WHERE NOT (options & 256)


- Ordered the suspension cultivation

UPDATE user SET options = options - 256 WHERE options & 256


9 - incognito mode

- Is growing operation

UPDATE user SET options = options + 512 WHERE NOT (options & 512)


- Ordered the suspension cultivation

UPDATE user SET options = options - 512 WHERE options & 512


10 - Property Members assess the reputation of

- Is growing operation

UPDATE user SET options = options + 1024 WHERE NOT (options & 1024)


- Ordered the suspension cultivation

UPDATE user SET options = options - 1024 WHERE options & 1024


11 - Download Membership of the members

- Is growing operation

UPDATE user SET options = options + 32 WHERE NOT (options & 32)

- ordered the suspension cultivation

UPDATE user SET options = options - 32 WHERE options & 32


12 - Receive new private messages


- Is growing operation

UPDATE user SET options = options + 2048 WHERE NOT (options & 2048)


- ordered the suspension cultivation

UPDATE user SET options = options - 2048 WHERE options & 2048


13 - receive an e-If you receive a private message

- Is growing operation

UPDATE user SET options = options + 4096 WHERE NOT (options & 4096)


- Ordered the suspension cultivation

UPDATE user SET options = options - 4096 WHERE options & 4096


14 - View Topic

- Oldest First

UPDATE user SET options = options - 32768 WHERE options & 32768


- Talk first

UPDATE user SET options = options + 32768 WHERE NOT (options & 32768)


15 - Show a window if you receive a new private message

- Is growing operation

UPDATE user SET pmpopup = 1


- Ordered the suspension cultivation

UPDATE user SET pmpopup = 0


16 - Selection of a specific language

- A change of language

UPDATE user SET languageid = X


Example language
I've got in my forum here
Forum Butcher 99 .. ALGZAR99.COM - Powered by vBulletin
The number two language first and second developer Arabization Arabization of immigrant guest
I would like to run
Tarrib Top Line

UPDATE user SET languageid = 1


If you want to run Powered immigrant guest

UPDATE user SET languageid = 2


17 - funds earmarked for writing topics

- Is a simple operation of the editor

UPDATE user SET showvbcode = 0


- Is standard operating panel

UPDATE user SET showvbcode = 1


- the operation of painting developed

UPDATE user SET showvbcode = 2


18 - Thread subscriptions

- Is not running Thread Subscription

UPDATE user SET autosubscribe =- 1;


- is silently my subscription

UPDATE user SET autosubscribe = 0;


- is an alert when my immediate reply to any topic

UPDATE user SET autosubscribe = 1;


- is an alert on my updates

UPDATE user SET autosubscribe = 2;


- Alert Weekly recently given my

UPDATE user SET autosubscribe = 3;


19 - allow the inclusion of codes bb

- Is growing operation

UPDATE forum SET options = options + 64 WHERE NOT (options & 64);

- Ordered the suspension cultivation

UPDATE forum SET options = options - 64 WHERE options & 64;

20 - allow the inclusion of the Kompass image img

- Is growing operation

UPDATE forum SET options = options + 128 WHERE NOT (options & 128);

- Ordered the suspension cultivation

UPDATE forum SET options = options - 128 WHERE options & 128;


21 - allow the inclusion of the Kompass ([html])

- Is growing operation

UPDATE forum SET options = options 256 WHERE NOT (options & 256);


- Is growing suspension

UPDATE forum SET options = options - 256 WHERE options & 256;

[quote]
Note
Please do not activate this, to keep your board from the breach
Oh God, I have reached testified [/ quote]

22 - allow the inclusion of Smiles

- Is growing operation

UPDATE forum SET options = options 512 WHERE NOT (options & 512);

- Is growing suspension

UPDATE forum SET options = options - 512 WHERE options & 512;


23 - the transfer of members of the group to another group

Agriculture is

update user set usergroupid = 'm' where usergroupid = 't'


, such as Ali Malk

M is the number to organic Elly Anholha have ended and the t Elly are then about ...
You you want a movement of members of the Group No. 7 to No. 2 Kit
Means the transfer of supervisors to total members

update user set usergroupid = '2 'where usergroupid = '7'


the thought of the letter m and the letter "L" t
Ermzo not a thing
And I compare the two mtwer


24 - Delete Visitor Messages

Plant each condition and

TRUNCATE `visitormessage`

and this

TRUNCATE `visitormessage_hash`


and this

UPDATE `user` SET `vmunreadcount` = 0;




and, God willing, we Bkda we have exhausted Visitor Messages


Been if the new orders, I will update the topic