PDA

View Full Version : Plz Help Database


forsanelhaq
12-07-2007, 05:36 PM
PLZ HELP ME I DELETE

mydatabase.session.sessionhash

sessionhash this table in my database

delted from me by error

give me sql command to create it again

Marco van Herwaarden
12-08-2007, 07:22 AM
sessionhash is not a table, but a column in the session table.

To recreate the session table use the following SQL (add tableprefix if needed):

CREATE TABLE `session` (
`sessionhash` char(32) NOT NULL default '',
`userid` int(10) unsigned NOT NULL default '0',
`host` char(15) NOT NULL default '',
`idhash` char(32) NOT NULL default '',
`lastactivity` int(10) unsigned NOT NULL default '0',
`location` char(255) NOT NULL default '',
`useragent` char(100) NOT NULL default '',
`styleid` smallint(5) unsigned NOT NULL default '0',
`languageid` smallint(5) unsigned NOT NULL default '0',
`loggedin` smallint(5) unsigned NOT NULL default '0',
`inforum` smallint(5) unsigned NOT NULL default '0',
`inthread` int(10) unsigned NOT NULL default '0',
`incalendar` smallint(5) unsigned NOT NULL default '0',
`badlocation` smallint(5) unsigned NOT NULL default '0',
`bypass` tinyint(4) NOT NULL default '0',
`profileupdate` smallint(5) unsigned NOT NULL default '0',
PRIMARY KEY (`sessionhash`)
) ENGINE=MEMORY;