Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > General > Member Archives
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
URGENT: Session Table Default Structure Details »»
URGENT: Session Table Default Structure
Version: , by GOSatisfy GOSatisfy is offline
Developer Last Online: Sep 2002 Show Printable Version Email this Page

Version: Unknown Rating:
Released: 05-22-2002 Last Update: Never Installs: 0
 
No support by the author.

Urgent: Can someone send me the default structure of the "Session" table --- It seems that it broke my board when switching servers after a crash!

-bryan

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #2  
Old 05-22-2002, 09:45 AM
Lesane's Avatar
Lesane Lesane is offline
 
Join Date: Oct 2001
Location: The Netherlands
Posts: 1,149
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

PHP Code:
#
# Table structure for table `session`
#

CREATE TABLE session (
  
sessionhash char(32NOT NULL default '',
  
userid int(10unsigned NOT NULL default '0',
  
host char(50NOT NULL default '',
  
useragent char(50NOT NULL default '',
  
lastactivity int(10unsigned NOT NULL default '0',
  
styleid smallint(5unsigned NOT NULL default '0',
  
location char(255NOT NULL default '',
  
PRIMARY KEY  (sessionhash)
TYPE=MyISAM
Reply With Quote
  #3  
Old 05-22-2002, 09:47 AM
Admin's Avatar
Admin Admin is offline
Coder
 
Join Date: Oct 2023
Location: Server
Posts: 1
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

[sql]CREATE TABLE session (
sessionhash char(32) NOT NULL,
userid int(10) unsigned DEFAULT '0' NOT NULL,
host char(50) NOT NULL,
useragent char(50) NOT NULL,
lastactivity int(10) unsigned DEFAULT '0' NOT NULL,
location CHAR (255) not null,
styleid smallint(5) unsigned DEFAULT '0' NOT NULL,
PRIMARY KEY (sessionhash)
) TYPE=HEAP;[/sql]
Reply With Quote
  #4  
Old 05-22-2002, 09:49 AM
Admin's Avatar
Admin Admin is offline
Coder
 
Join Date: Oct 2023
Location: Server
Posts: 1
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

The table type is HEAP Lesane, it's not a regular MyISAM table.
Reply With Quote
  #5  
Old 05-22-2002, 09:54 AM
GOSatisfy GOSatisfy is offline
 
Join Date: Apr 2002
Posts: 6
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

This fixed all problems except viewing and using some of the newer forums created... i will enslose mysql error later today

thanks for now :-)
Reply With Quote
  #6  
Old 05-22-2002, 10:23 AM
Lesane's Avatar
Lesane Lesane is offline
 
Join Date: Oct 2001
Location: The Netherlands
Posts: 1,149
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally posted by FireFly
The table type is HEAP Lesane, it's not a regular MyISAM table.
The table type of my session table is 'MyISAM'. It says 'MyISAM' if i look in PhpMyAdmin. I did not modified it or something.
Reply With Quote
  #7  
Old 05-22-2002, 11:14 AM
Admin's Avatar
Admin Admin is offline
Coder
 
Join Date: Oct 2023
Location: Server
Posts: 1
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Change it to HEAP then, you will get better performance.
Reply With Quote
  #8  
Old 05-23-2002, 11:08 PM
GOSatisfy GOSatisfy is offline
 
Join Date: Apr 2002
Posts: 6
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

My database is returning the following error:

Quote:



Database error in vBulletin 2.2.5:

Invalid SQL:
SELECT

thread.threadid
FROM thread
WHERE thread.forumid = 28
AND thread.sticky=0
AND thread.visible=1
AND sticky=0

ORDER BY sticky DESC, lastpost DESC
LIMIT 0,25
mysql error: Unknown error

mysql error number: 1105

Date: Thursday 23rd of May 2002 07:53:09 PM
Script: http://dev.campkr.com/boards/boards/...?s=&forumid=28
Referer: http://dev.campkr.com/boards/showthr...s=&threadid=79
However, if I remover the ", lastpost DESC" it returns what it is supposed to. How do I correct this so lastpost DESC will work when called from vB?

-bryan
Reply With Quote
  #9  
Old 05-24-2002, 06:14 AM
Admin's Avatar
Admin Admin is offline
Coder
 
Join Date: Oct 2023
Location: Server
Posts: 1
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

What version of MySQL are you using?
Reply With Quote
  #10  
Old 05-24-2002, 03:11 PM
GOSatisfy GOSatisfy is offline
 
Join Date: Apr 2002
Posts: 6
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

mysql Ver 11.17 Distrib 3.23.49a, for pc-linux-gnu (i686)
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 12:29 AM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.06836 seconds
  • Memory Usage 2,298KB
  • Queries Executed 23 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (1)bbcode_php
  • (2)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (6)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (10)post_thanks_box
  • (10)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (10)post_thanks_postbit_info
  • (9)postbit
  • (10)postbit_onlinestatus
  • (10)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete