Log in

View Full Version : Database error in vBulletin


AlShammari
09-18-2007, 12:05 AM
Hello

I face this problem whene I was install the vBulletin

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
Date : Tuesday, September 18th 2007 @ 02:48:30 AM
Script : http://members.lycos.co.uk/miske/install/install.php?step=3&____ord____=1190076391
Referrer : http://members.lycos.co.uk/miske/install/install.php?step=3
IP Address : 168.187.11.130
Username :
Classname : vb_database

Kirk Y
09-18-2007, 01:51 AM
What exactly are you trying to do? Importing from another board or installing a fresh board? Basically this error means that there is already a table in the database you're telling vBulletin to install to.

AlShammari
09-19-2007, 10:53 AM
thanks alot

and what about this error?

Database error in vBulletin 3.6.7:

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, September 19th 2007 @ 02:53:15 PM
Script : http://www.temo.com/vb/showthread.php?t=1849&highlight=demo
Referrer : http://www.temo.com/vb/search.php?searchid=3673
IP Address : 168.187.11.130
Username : temo
Classname : vB_Database

Dismounted
09-19-2007, 11:31 AM
Try disabling all your modifications.

AlShammari
09-19-2007, 06:51 PM
Try disabling all your modifications.

the problem happen after i change user id from Mysql

Eikinskjaldi
09-19-2007, 09:04 PM
Did you change it in all 20-30 tables that use some form of userid, or did you just hopelessly corrupt your forum by only changing it in the user table?

AlShammari
09-20-2007, 01:09 AM
change it in user table

Eikinskjaldi
09-20-2007, 05:36 AM
change it in user table

Well you'd better change it back then. Because the userid is used all over vb in various fields, and just changing the value in the user table will cause...well...errors liek the one you are getting.

AlShammari
09-20-2007, 09:10 AM
Well you'd better change it back then. Because the userid is used all over vb in various fields, and just changing the value in the user table will cause...well...errors liek the one you are getting.

i change it back
but still have the problem

:(

AlShammari
09-21-2007, 09:36 AM
I still has Database error
I change the id number from data base from user table
and change it back

Eikinskjaldi
09-21-2007, 11:21 AM
Did you post or do anything else with the new user?

AlShammari
09-21-2007, 02:16 PM
Did you post or do anything else with the new user?
I solve the problem by delet all user post

but i think it doesn't a right one

but it works now