PDA

View Full Version : problem in SQL usergorupid


ahmed-samara
03-23-2009, 10:53 AM
Hello today :)

i have in usergroupid
i do drope usergroup by this code

DROP TABLE `usergroup` ;

and when i create again by this table

CREATE TABLE `usergroup` (
`usergroupid` smallint(5) unsigned NOT NULL auto_increment,
`title` char(100) NOT NULL default '',
`description` varchar(250) NOT NULL default '',
`usertitle` char(100) NOT NULL default '',
`passwordexpires` smallint(5) unsigned NOT NULL default '0',
`passwordhistory` smallint(5) unsigned NOT NULL default '0',
`pmquota` smallint(5) unsigned NOT NULL default '0',
`pmsendmax` smallint(5) unsigned NOT NULL default '5',
`opentag` char(100) NOT NULL default '',
`closetag` char(100) NOT NULL default '',
`canoverride` smallint(5) unsigned NOT NULL default '0',
`ispublicgroup` smallint(5) unsigned NOT NULL default '0',
`forumpermissions` int(10) unsigned NOT NULL default '0',
`pmpermissions` int(10) unsigned NOT NULL default '0',
`calendarpermissions` int(10) unsigned NOT NULL default '0',
`wolpermissions` int(10) unsigned NOT NULL default '0',
`adminpermissions` int(10) unsigned NOT NULL default '0',
`genericpermissions` int(10) unsigned NOT NULL default '0',
`genericpermissions2` int(10) unsigned NOT NULL default '0',
`genericoptions` int(10) unsigned NOT NULL default '0',
`signaturepermissions` int(10) unsigned NOT NULL default '0',
`visitormessagepermissions` int(10) unsigned NOT NULL default '0',
`attachlimit` int(10) unsigned NOT NULL default '0',
`avatarmaxwidth` smallint(5) unsigned NOT NULL default '0',
`avatarmaxheight` smallint(5) unsigned NOT NULL default '0',
`avatarmaxsize` int(10) unsigned NOT NULL default '0',
`profilepicmaxwidth` smallint(5) unsigned NOT NULL default '0',
`profilepicmaxheight` smallint(5) unsigned NOT NULL default '0',
`profilepicmaxsize` int(10) unsigned NOT NULL default '0',
`sigpicmaxwidth` smallint(5) unsigned NOT NULL default '0',
`sigpicmaxheight` smallint(5) unsigned NOT NULL default '0',
`sigpicmaxsize` int(10) unsigned NOT NULL default '0',
`sigmaximages` smallint(5) unsigned NOT NULL default '0',
`sigmaxsizebbcode` smallint(5) unsigned NOT NULL default '0',
`sigmaxchars` smallint(5) unsigned NOT NULL default '0',
`sigmaxrawchars` smallint(5) unsigned NOT NULL default '0',
`sigmaxlines` smallint(5) unsigned NOT NULL default '0',
`usercsspermissions` int(10) unsigned NOT NULL default '0',
`albumpermissions` int(10) unsigned NOT NULL default '0',
`albumpicmaxwidth` smallint(5) unsigned NOT NULL default '0',
`albumpicmaxheight` smallint(5) unsigned NOT NULL default '0',
`albumpicmaxsize` int(10) unsigned NOT NULL default '0',
`albummaxpics` int(10) unsigned NOT NULL default '0',
`albummaxsize` int(10) unsigned NOT NULL default '0',
`socialgrouppermissions` int(10) unsigned NOT NULL default '0',
`pmthrottlequantity` int(10) unsigned NOT NULL default '0',
`groupiconmaxsize` int(10) unsigned NOT NULL default '0',
`maximumsocialgroups` int(10) unsigned NOT NULL default '0',
`ecdownloadpermissions` int(10) unsigned NOT NULL,
`ecexcludecatlist` varchar(250) NOT NULL,
`ecdownloadsmaxdailydl` int(10) NOT NULL default '-1',
`ecdownloadsmaxuploadtotal` int(10) NOT NULL default '-1',
`ecdownloadsmaxdailyfiles` int(10) NOT NULL default '-1',
`ecdownloaddelaygrp` int(10) NOT NULL default '-1',
`phpkdaqr` int(10) unsigned NOT NULL default '1',
PRIMARY KEY (`usergroupid`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 AUTO_INCREMENT=9 ;

--
-- Dumping data for table `usergroup`
--

INSERT INTO `usergroup` VALUES (1, 'Unregistered / Not Logged In', '', 'Guest', 0, 0, 50, 0, '', '', 0, 0, 655375, 0, 1, 0, 0, 33554433, 0, 104, 0, 16, 0, 80, 80, 20000, 100, 100, 65535, 500, 100, 10000, 4, 7, 500, 1000, 0, 0, 192, 600, 600, 100000, 100, 0, 64, 0, 65535, 0, 0, '', -1, -1, -1, -1, 1);
INSERT INTO `usergroup` VALUES (2, 'Registered Users', '', '', 0, 0, 50, 5, '', '', 0, 0, 12317183, 3, 63, 1, 0, 1579685063, 1, 62, 137215, 63, 0, 80, 80, 20000, 100, 100, 65535, 500, 100, 10000, 4, 7, 500, 1000, 0, 63, 255, 600, 600, 100000, 100, 0, 55159, 0, 65535, 5, 0, '', -1, -1, -1, -1, 1);
INSERT INTO `usergroup` VALUES (3, 'Users Awaiting Email Confirmation', '', '', 0, 0, 50, 1, '', '', 0, 0, 655375, 0, 1, 0, 0, 33554499, 0, 56, 0, 16, 0, 80, 80, 20000, 100, 100, 65535, 500, 100, 10000, 4, 7, 500, 1000, 0, 0, 192, 600, 600, 100000, 100, 0, 64, 0, 65535, 5, 0, '', -1, -1, -1, -1, 1);
INSERT INTO `usergroup` VALUES (4, '(COPPA) Users Awaiting Moderation', '', '', 0, 0, 50, 1, '', '', 0, 0, 655375, 0, 1, 0, 0, 33554499, 0, 56, 0, 16, 0, 80, 80, 20000, 100, 100, 65535, 500, 100, 10000, 4, 7, 500, 1000, 0, 0, 192, 600, 600, 100000, 100, 0, 64, 0, 65535, 5, 0, '', -1, -1, -1, -1, 1);
INSERT INTO `usergroup` VALUES (5, 'Super Moderators', '', 'Super Moderator', 0, 0, 50, 0, '', '', 0, 0, 16777215, 7, 63, 15, 1, 1609520879, 1, 63, 237567, 63, 0, 80, 80, 20000, 100, 100, 65535, 500, 100, 10000, 4, 7, 500, 1000, 0, 63, 255, 600, 600, 100000, 100, 0, 65535, 0, 65535, 5, 0, '', -1, -1, -1, -1, 1);
INSERT INTO `usergroup` VALUES (6, 'Administrators', '', 'Administrator', 180, 360, 50, 5, '', '', 0, 0, 16777215, 7, 63, 31, 3, 2147483583, 1, 55, 237567, 63, 0, 80, 80, 20000, 100, 100, 65535, 500, 100, 10000, 0, 7, 0, 0, 0, 63, 255, 600, 600, 100000, 100, 0, 65535, 0, 65535, 5, 65535, '', -1, -1, -1, -1, 1);
INSERT INTO `usergroup` VALUES (7, 'Moderators', '', 'Moderator', 0, 0, 50, 5, '', '', 0, 0, 12317183, 7, 63, 15, 0, 1609504463, 1, 62, 237567, 63, 0, 80, 80, 20000, 100, 100, 65535, 500, 100, 10000, 4, 7, 500, 1000, 0, 63, 255, 600, 600, 100000, 100, 0, 65535, 0, 65535, 5, 0, '', -1, -1, -1, -1, 1);
INSERT INTO `usergroup` VALUES (8, 'Banned Users', '', 'Banned', 0, 0, 0, 0, '', '', 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 80, 80, 20000, 100, 100, 65535, 500, 100, 10000, 4, 7, 500, 1000, 0, 0, 0, 600, 600, 100000, 100, 0, 0, 0, 65535, 5, 0, '', -1, -1, -1, -1, 1);


Database error in vBulletin 3.8.1:

Invalid SQL:
SELECT * FROM usergroup ORDER BY title;

MySQL Error : Table 'ehkynet_vbanasfourmsup.usergroup' doesn't exist
Error Number : 1146
Request Date : Monday, March 23rd 2009 @ 03:05:21 AM
Error Date : Monday, March 23rd 2009 @ 03:05:21 AM
Script : http://www.ehky.net/vb/admincp/usergroup.php?do=modify
Referrer : http://www.ehky.net/vb/admincp/index.php?do=nav
IP Address : 203.6.221.151
Username : احكي
Classname : vB_Database
MySQL Version : 5.0.67-community

thanks for help :)

--------------- Added 1237820304 at 1237820304 ---------------

no any answer :(

Lynne
03-23-2009, 02:23 PM
Are you doing this in phpMyAdmin? Are you checking your database to first see that the table is dropped and then to see the the table gets created and populated?

ahmed-samara
03-23-2009, 02:38 PM
yeah i doing that in phpMyAdmin i'm sure is dropped in database but when i creat this error database come to me

Lynne
03-23-2009, 02:47 PM
You can't be getting that error when creating the database again - you have no select statement in there. Furthermore, look at the script and referrer in the error - that error is from someone on your site - not from you creating the table in phpMyAdmin. They are trying to access a table that doesn't exist yet (since you've dropped it).

ahmed-samara
03-23-2009, 05:14 PM
thanks too much:)

Marco van Herwaarden
03-24-2009, 02:02 PM
And why would you need to drop your usergroup table?