Seite 2 von 2

Verfasst: 27.02.2005 10:44
von ich-nrw
da kommt die nächste fehlermeldung!
Fehler

SQL-Befehl :

CREATE TABLE phpbb_easymod(
mod_id mediumint( 8 ) NOT NULL DEFAULT '0' AUTO_INCREMENT ,
mod_title varchar( 50 ) NULL DEFAULT '',
mod_file varchar( 255 ) NULL DEFAULT '',
mod_version varchar( 15 ) NULL DEFAULT '',
mod_author_handle varchar( 25 ) NULL DEFAULT '',
mod_author_email varchar( 100 ) NULL DEFAULT '',
mod_author_name varchar( 100 ) NULL DEFAULT '',
mod_author_url varchar( 100 ) NULL DEFAULT '',
mod_description text NULL DEFAULT '',
mod_process_date int( 11 ) NULL DEFAULT '0',
mod_phpBB_version varchar( 15 ) NULL DEFAULT '',
mod_processed_themes varchar( 200 ) NULL DEFAULT '',
mod_processed_langs varchar( 200 ) NULL DEFAULT '',
mod_files_edited mediumint( 8 ) NULL DEFAULT '0',
mod_tables_added mediumint( 8 ) NULL DEFAULT '0',
mod_tables_altered mediumint( 8 ) NULL DEFAULT '0',
mod_rows_inserted mediumint( 8 ) NULL DEFAULT '0',
PRIMARY KEY ( mod_id )
)

MySQL meldet:

#1067 - Invalid default value for 'mod_id'
und
Fehler

SQL-Befehl :

INSERT INTO phpbb_easymod( mod_title, mod_file, mod_version, mod_author_handle, mod_author_email, mod_author_name, mod_author_url, mod_description, mod_process_date, mod_phpBB_version, mod_processed_themes, mod_processed_langs, mod_files_edited, mod_tables_added, mod_tables_altered, mod_rows_inserted )
VALUES (
'EasyMOD', 'easymod/easymod_install.php', '0.1.13', 'Nuttzy', 'pktoolkit@blizzhackers.com', 'n/a', 'http://www.blizzhackers.com', 'EasyMOD automatically perfoms in seconds which previously required the tedious task of manually editing files.', 1109477741, '2.0.12', 'Vision; subSilver', 'english; german', 0, 1, 0, 1
)

MySQL meldet:

#1146 - Table 'usr_web337_2.phpbb_easymod' doesn't exist
ich hab mir die nacht auch mal noch andere beiträge hier durchgelesen, wo es zwar auch problemchen gab aber sowas wie bei mir, gabs nie! also muß ja irgendwo bei mir der fehler liegen!
was ich auch mitbekomm hab, war bei allen anderen, gleich am anfang eine sache anders wie bei mir, was ich gestern schon sagte das hier.
http://people.freenet.de/ich-nrw/sceen34.jpg

Lösung

Verfasst: 27.02.2005 12:04
von gloriosa
Hallo,
die Lösung findest Du hier :grin: !

Verfasst: 27.02.2005 12:52
von ich-nrw
meinst du das?
Wiedmann hat geschrieben:Hallo gloriosa,

das/dein Problem ist die nicht korrekte Definition der Spalte `mod_id`. Ältere MySQL-Versionen scheinen diesen Fehler wohl, im Gegensatz zur aktuellen Version, noch zu tolerieren.
--> Spalten mit AUTO_INCREMENT dürfen kein DEFAULT value haben.

Mit folgendem SQL kannst du diese Tabelle in phpMyAdmin anlegen:

Code: Alles auswählen

CREATE TABLE `phpbb_easymod` (
`mod_id` MEDIUMINT( 8 ) NOT NULL AUTO_INCREMENT ,
`mod_title` VARCHAR( 50 ) DEFAULT '',
`mod_file` VARCHAR( 255 ) DEFAULT '',
`mod_version` VARCHAR( 15 ) DEFAULT '',
`mod_author_handle` VARCHAR( 25 ) DEFAULT '',
`mod_author_email` VARCHAR( 100 ) DEFAULT '',
`mod_author_name` VARCHAR( 100 ) DEFAULT '',
`mod_author_url` VARCHAR( 100 ) DEFAULT '',
`mod_description` TEXT,
`mod_process_date` INT( 11 ) DEFAULT '0',
`mod_phpBB_version` VARCHAR( 15 ) DEFAULT '',
`mod_processed_themes` VARCHAR( 200 ) DEFAULT '',
`mod_processed_langs` VARCHAR( 200 ) DEFAULT '',
`mod_files_edited` MEDIUMINT( 8 ) DEFAULT '0',
`mod_tables_added` MEDIUMINT( 8 ) DEFAULT '0',
`mod_tables_altered` MEDIUMINT( 8 ) DEFAULT '0',
`mod_rows_inserted` MEDIUMINT( 8 ) DEFAULT '0',
PRIMARY KEY ( `mod_id` )
) ENGINE = MYISAM
ich werds gleich mal versuchen! und hoffe wirklich, das es klappt!

Verfasst: 27.02.2005 13:00
von ich-nrw