Seite 1 von 1

phpbb_sessions

Verfasst: 14.01.2004 07:07
von wumme
irgendwie leert sich die tabelle nicht automatisch :-?

bekomme die fehlermeldung

hpBB : Kritischer Fehler

Error clearing sessions table

DEBUG MODE

SQL Error : 1064 You have an error in your SQL syntax near 'ORDER BY session_start LIMIT 50' at line 2

DELETE FROM phpbb_sessions ORDER BY session_start LIMIT 50

Line : 212
File : /home/httpd/vhosts/meindomain.com/httpdocs/phpBB2/common.php

muss sie dann manuell in myadmin löschen

hab den session_manager drauf, kanns daran liegen???

aber an dem mod kann man ja eigentlich nicht viel verkehrt machen :oops:

Verfasst: 14.01.2004 08:02
von oxpus
Leere die Tabelle besser mal mit myadmin (oder phpmyadmin). Vielleicht sind da Fehler in der Tabelle enthalten. Du solltest diese aber auch mal überprüfen/optimieren und bei Fehlern dabei auch reparieren.

Re: phpbb_sessions

Verfasst: 14.01.2004 08:13
von itst
wumme hat geschrieben:phpBB : Kritischer Fehler

Error clearing sessions table

DEBUG MODE

SQL Error : 1064 You have an error in your SQL syntax near 'ORDER BY session_start LIMIT 50' at line 2

DELETE FROM phpbb_sessions ORDER BY session_start LIMIT 50

Line : 212
File : /home/httpd/vhosts/meindomain.com/httpdocs/phpBB2/common.php
Dieser Fehler stammt nicht von phpBB, sondern von dem Mod.

ORDER BY für DELETE gibt es bei MySql erst seit Version 4.0.0 (siehe Changelog).

Bei Dir läuft wohl eine ältere Version, die ORDER BY für DELETE noch nicht unterstützt und deswegen diesen Fehler ausgibt.

@oxpus: die Sessiontabelle ist unter MySql vom Typ Heap, da ist nichts mit optimieren.

Verfasst: 14.01.2004 21:38
von oxpus
@itst
Ich will mich nicht streiten, habe zur Tabelle sessions eine kleine Korrektur:
# --------------------------------------------------------
#
# Table structure for table 'phpbb_sessions'
#
# Note that if you're running 3.23.x you may want to make
# this table a type HEAP.
This type of table is stored
# within system memory and therefore for big busy boards
# is likely to be noticeably faster than continually
# writing to disk ...
#
CREATE TABLE phpbb_sessions (
session_id char(32) DEFAULT '' NOT NULL,
session_user_id mediumint(8) DEFAULT '0' NOT NULL,
session_start int(11) DEFAULT '0' NOT NULL,
session_time int(11) DEFAULT '0' NOT NULL,
session_ip char(8) DEFAULT '0' NOT NULL,
session_page int(11) DEFAULT '0' NOT NULL,
session_logged_in tinyint(1) DEFAULT '0' NOT NULL,
PRIMARY KEY (session_id),
KEY session_user_id (session_user_id),
KEY session_id_ip_user_id (session_id, session_ip, session_user_id)
);
Das ist ein Auszug aus dem Installations-Schema von phpBB 2.0.6. Wenn ich das gegen die Datenbank laufen lasse (bei mir ist das 3.23.55), egal, ob mit phpmadmin, bei der Forum-Neuinstallation oder anderen MySQL-Frontends, dann wird die Tabelle als MyISAM angelegt ;)

Verfasst: 14.01.2004 22:09
von wumme
also ich hab den mod jetzt rausgenommen,

und es läuft wieder

die tabelle hatte ich gestern morgen gelehrt, und gestern abend war das gleiche prob :-?

dann wirds wohl doch am mod liegen

Verfasst: 14.01.2004 22:17
von PhilippK
@oxpus - die Tabelle wird an einer späteren Stelle des Installationsscriptes umgewandelt, sofern die MySQL-Version passt.

Gruß, Philipp

Verfasst: 14.01.2004 23:46
von oxpus
Ah ja. Okay, ich leg mich wieder hin.