Seite 1 von 1

Mod: Personal notes - Datenbank anpassen, aber wie?

Verfasst: 19.02.2004 05:31
von michi-w.
Hallo,

in der Installationsanleitung von dem Mod steht, das ich ggf. die Datenbank ändern soll, nur hab ich das überhaupt noch nie gemacht.

Kann mir dabei einer helfen?

Das steht in der Anleitung:
#
# ----- QUERY DATABASE ----------------------------------------
# // Change the table-prefix 'phpbb_' if your tables haves another one!!!
#
CREATE TABLE phpbb_notes (
post_id mediumint(8 ) unsigned NOT NULL auto_increment,
poster_id mediumint(8 ) NOT NULL default '0',
post_subject varchar(60) default NULL,
post_text text,
post_time int(11) NOT NULL default '0',
PRIMARY KEY (post_id),
KEY poster_id (poster_id),
KEY post_time (post_time)
) TYPE=MyISAM;

INSERT INTO phpbb_config ( config_name , config_value )
VALUES ('notes', '20');
Das Script gibt diese Fehlermeldung:
Could not obtain notes/user information.

DEBUG MODE

SQL Error : 1146 Table 'usr_2.phpbb_notes' doesn't exist

SELECT * FROM phpbb_notes WHERE poster_id = 2 ORDER BY post_time

Line : 49
File : /home/www/html/web1/forum/notes.php
Gruß
michi-w.

Verfasst: 19.02.2004 08:47
von netzmeister
Hallo,
verwendung von phpMyAdmin siehe hier.

Und dann folgenden Query absenden.

Code: Alles auswählen

# 
# ----- QUERY DATABASE ---------------------------------------- 
# // Change the table-prefix 'phpbb_' if your tables haves another one!!! 
# 
CREATE TABLE phpbb_notes ( 
post_id mediumint(8 ) unsigned NOT NULL auto_increment, 
poster_id mediumint(8 ) NOT NULL default '0', 
post_subject varchar(60) default NULL, 
post_text text, 
post_time int(11) NOT NULL default '0', 
PRIMARY KEY (post_id), 
KEY poster_id (poster_id), 
KEY post_time (post_time) 
) TYPE=MyISAM; 

INSERT INTO phpbb_config ( config_name , config_value ) 
VALUES ('notes', '20');
Den Tabellen Prefix ggf. noch anpassen. ( phpbb_ )

Gruß netzmeister

Verfasst: 19.02.2004 12:47
von oxpus
Ich rate zur neuen Version 1.4.1. Download: http://www.oxpus.de/phpBB/downloads.php ... d=11&cat=1