Zum Inhalt springen

Hilfe mysql Fehler

Erstellt am 1. April 2005 · 46 Antworten · letzte Antwort am 13. Juni 2006 · Seite 2 von 3

Tags: Frage

Michaela-Ww ·
Dander schrieb

ja ok drücken

hab ich gemacht...
jetzt sagt er mir das:

Datenbank db0014361 auf localhost 
Fehler

SQL-Befehl :  

Current value : int( 11 ) unsigned DEFAULT '0' NOT NULL AUTO_INCREMENT CREATE TABLE tx_mininews_news(

uid int( 11 ) unsigned DEFAULT '0' NOT NULL AUTO_INCREMENT ,
pid int( 11 ) unsigned DEFAULT '0' NOT NULL ,
tstamp int( 11 ) unsigned DEFAULT '0' NOT NULL ,
crdate int( 11 ) unsigned DEFAULT '0' NOT NULL ,
cruser_id int( 11 ) unsigned DEFAULT '0' NOT NULL ,
deleted tinyint( 4 ) unsigned DEFAULT '0' NOT NULL ,
hidden tinyint( 4 ) unsigned DEFAULT '0' NOT NULL ,
starttime int( 11 ) unsigned DEFAULT '0' NOT NULL ,
endtime int( 11 ) unsigned DEFAULT '0' NOT NULL ,
fe_group int( 11 ) DEFAULT '0' NOT NULL ,
datetime int( 11 ) DEFAULT '0' NOT NULL ,
title tinytext NOT NULL ,
teaser text NOT NULL ,
full_text text NOT NULL ,
front_page tinyint( 3 ) unsigned DEFAULT '0' NOT NULL ,
PRIMARY KEY ( uid ) ,
KEY parent( pid ) 
) TYPE = MYISAM 

MySQL meldet: 


#1064 - You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'Current value: int(11) unsigned DEFAULT '0' NOT NULL auto_increment 

CREATE T' at line 1 

[Dokumentation] · [Zurück]

Was mache ich jetzt?

Michaela-Ww ·
Dander schrieb

die zeile war zuviel

Current value: int(11) unsigned DEFAULT '0' NOT NULL auto_increment

Jetzt sagt er das:

Fehler

SQL-Befehl :  

CREATE TABLE tx_mininews_news(

uid int( 11 ) unsigned DEFAULT '0' NOT NULL AUTO_INCREMENT ,
pid int( 11 ) unsigned DEFAULT '0' NOT NULL ,
tstamp int( 11 ) unsigned DEFAULT '0' NOT NULL ,
crdate int( 11 ) unsigned DEFAULT '0' NOT NULL ,
cruser_id int( 11 ) unsigned DEFAULT '0' NOT NULL ,
deleted tinyint( 4 ) unsigned DEFAULT '0' NOT NULL ,
hidden tinyint( 4 ) unsigned DEFAULT '0' NOT NULL ,
starttime int( 11 ) unsigned DEFAULT '0' NOT NULL ,
endtime int( 11 ) unsigned DEFAULT '0' NOT NULL ,
fe_group int( 11 ) DEFAULT '0' NOT NULL ,
datetime int( 11 ) DEFAULT '0' NOT NULL ,
title tinytext NOT NULL ,
teaser text NOT NULL ,
full_text text NOT NULL ,
front_page tinyint( 3 ) unsigned DEFAULT '0' NOT NULL ,
PRIMARY KEY ( uid ) ,
KEY parent( pid ) 
) TYPE = MYISAM 

MySQL meldet: 


#1067 - Invalid default value for 'uid'
Michaela-Ww ·
Dander schrieb

ok hatte ich schon erwartet schmeis das aus jeder zeile raus:
DEFAULT '0'

Ich habe jetzt eingegeben:

ALTER TABLE tx_veguestbook_entries CHANGE uid uid int(11) unsigned NOT NULL auto_increment; 

CREATE TABLE tx_mininews_news ( 
uid int(11) unsigned NOT NULL auto_increment, 
pid int(11) unsigned NOT NULL, 
tstamp int(11) unsigned NOT NULL, 
crdate int(11) unsigned NOT NULL, 
cruser_id int(11) unsigned NOT NULL, 
deleted tinyint(4) unsigned NOT NULL, 
hidden tinyint(4) unsigned NOT NULL, 
starttime int(11) unsigned NOT NULL, 
endtime int(11) unsigned NOT NULL, 
fe_group int(11) NOT NULL, 
datetime int(11) NOT NULL, 
title tinytext NOT NULL, 
teaser text NOT NULL, 
full_text text NOT NULL, 
front_page tinyint(3) unsigned NOT NULL, 
PRIMARY KEY (uid), 
KEY parent (pid) 
) TYPE=MyISAM; 

DROP TABLE zzz_deleted_tt_board; 
Records in table: 2 
DROP TABLE zzz_deleted_tt_news; 
Records in table: 3 
DROP TABLE zzz_deleted_tt_news_cat; 
  
DROP TABLE zzz_deleted_tt_news_related_mm;

Antwort ist das hier...

Fehler

SQL-Befehl :  

Records IN TABLE :2 DROP TABLE zzz_deleted_tt_news 

MySQL meldet: 


#1064 - You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'Records in table: 2 
DROP TABLE zzz_deleted_tt_news' at line 1 

[Dokumentation] · [Zurück]

Tut mir leid das ich Dich so nerve...

Dander ·

naja die droptables sind ja auch nicht wichtig
aber ich schätze mal das die "records in tables"
zwischen den zeilen zu viel sind

Michaela-Ww ·

Ich glaube Typo will uns ärgern...

jetzt sagt es:

Fehler

SQL-Befehl :  

CREATE TABLE tx_mininews_news(

uid int( 11 ) unsigned NOT NULL AUTO_INCREMENT ,
pid int( 11 ) unsigned NOT NULL ,
tstamp int( 11 ) unsigned NOT NULL ,
crdate int( 11 ) unsigned NOT NULL ,
cruser_id int( 11 ) unsigned NOT NULL ,
deleted tinyint( 4 ) unsigned NOT NULL ,
hidden tinyint( 4 ) unsigned NOT NULL ,
starttime int( 11 ) unsigned NOT NULL ,
endtime int( 11 ) unsigned NOT NULL ,
fe_group int( 11 ) NOT NULL ,
datetime int( 11 ) NOT NULL ,
title tinytext NOT NULL ,
teaser text NOT NULL ,
full_text text NOT NULL ,
front_page tinyint( 3 ) unsigned NOT NULL ,
PRIMARY KEY ( uid ) ,
KEY parent( pid ) 
) TYPE = MYISAM 

MySQL meldet: 

#1050 - Table 'tx_mininews_news' already exists

Eingabe war jetzt:

ALTER TABLE tx_veguestbook_entries CHANGE uid uid int(11) unsigned NOT NULL auto_increment; 

CREATE TABLE tx_mininews_news ( 
uid int(11) unsigned NOT NULL auto_increment, 
pid int(11) unsigned NOT NULL, 
tstamp int(11) unsigned NOT NULL, 
crdate int(11) unsigned NOT NULL, 
cruser_id int(11) unsigned NOT NULL, 
deleted tinyint(4) unsigned NOT NULL, 
hidden tinyint(4) unsigned NOT NULL, 
starttime int(11) unsigned NOT NULL, 
endtime int(11) unsigned NOT NULL, 
fe_group int(11) NOT NULL, 
datetime int(11) NOT NULL, 
title tinytext NOT NULL, 
teaser text NOT NULL, 
full_text text NOT NULL, 
front_page tinyint(3) unsigned NOT NULL, 
PRIMARY KEY (uid), 
KEY parent (pid) 
) TYPE=MyISAM; 

DROP TABLE zzz_deleted_tt_board; 
DROP TABLE zzz_deleted_tt_news; 
DROP TABLE zzz_deleted_tt_news_cat; 
  
DROP TABLE zzz_deleted_tt_news_related_mm;
Dander ·

ja die tabelle wurde beim letzten mal schon angelegt 🙂

sind die fehlermeldungen noch da???

Michaela-Ww ·

Hi Dander

Dander schrieb

sind die fehlermeldungen noch da???

Die fehlermeldungen bei DB Überprüfung sind jetzt weg.
*freu*
Dafür schonmal vielen Dank.

Aber meine Seite ist immer noch leer.
Ich hatte mir ja bei COMPARE und IMPORT wohl noch mehr zerschossen.

Wo kann ich denn jetzt noch suchen?
Die Seiteninhalte sind noch da.
Das Template auch... trotzdem wird der Seiteninhalt nichtmehr angezeigt.
Nurnoch die Designvorlage und die Menüs.
Hier die URL
www.hsv-ransbach-baumbach.de

Gruß
Michaela

Dander ·

tja dann musst du leider noch die tausend alter table befehle von der
sql datei durchführen 🙂

und zwar ohne die commentare zwischen den zeile und ohne default 0

Michaela-Ww ·
Dander schrieb

tja dann musst du leider noch die tausend alter table befehle von der
sql datei durchführen 🙂

und zwar ohne die commentare zwischen den zeile und ohne default 0

Oh je,
Also ich muß alles aus der compare Liste nehmen.
Das default '0' entfernen und die Kommentare auch und dann unter SQL wieder eintragen?

Habe grade bei der DB Überprüfung noch was nachgeschaut.
Er wirft mir bei den Relations folgendes raus:

Relations:
 [ MENU ] Record Statistics Total Page Tree Database Relations Full search Find filename 
Files with no references at all (delete them!):
Files referenced from more than one record:
Missing files:
Select fields:
Group fields:
There are 1 records pointing to this missing or deleted record; [pages][44]
There are 1 records pointing to this missing or deleted record; [pages][34]
There are 1 records pointing to this missing or deleted record; [pages][47]
There are 2 records pointing to this missing or deleted record; [be_groups][1]
There are 1 records pointing to this missing or deleted record; [static_template][43]

Habe ich das static_template zerschossen?
Wie kann ich es wiederfinden?

LG
Michaela

Michaela-Ww ·

Hallo Dander,

habe jetzt folgende Tabellen wieder hergestellt:

CREATE TABLE static_template (
uid int(11) unsigned  NOT NULL auto_increment,
pid int(11) unsigned  NOT NULL,
tstamp int(11) unsigned  NOT NULL,
crdate int(11) unsigned  NOT NULL,
title tinytext NOT NULL,
include_static tinyblob NOT NULL,
constants blob NOT NULL,
config blob NOT NULL,
editorcfg blob NOT NULL,
description text NOT NULL,
PRIMARY KEY (uid),
KEY parent (pid)
) TYPE=MyISAM;

CREATE TABLE static_tsconfig_help (
uid int(11)  NOT NULL auto_increment,
guide int(11)  NOT NULL,
md5hash varchar(32)  NOT NULL,
description text NOT NULL,
obj_string tinytext NOT NULL,
appdata blob NOT NULL,
title tinytext NOT NULL,
PRIMARY KEY (uid),
KEY guide (guide,md5hash)
) TYPE=MyISAM;

Die hat Typo mir bei Compare / Import
angezeigt.

Aber die Seite wird nich wieder angezeigt. 🙁

Mehr zeigt Typo mir aber nicht an.
Nur diese ganz lange Liste mit Tables aber nicht was da rein gehört.

Kannst Du mir nochmal weiterhelfen?

He, habe grade noch ws gefunden.
Im Template meiner Hauptseite hatte ich unter Include static ja was angegeben. Aber die Liste ist jetzt leer.
Und auch die Auswahlbox rechts ist jetzt leer.
Ich glaube ich hatte dort die tt_content
und/oder
etwas mit tt_content default
drin.
Wie bekomme ich die denn wieder?

Gruß
Michaela

Dander ·

du kannst doch noch include static data oder os klicken ( im install tool ) probier es mal damit

Michaela-Ww ·

Hallo Dander,

Dander schrieb

du kannst doch noch include static data oder os klicken ( im install tool ) probier es mal damit

wo finde ich das denn?
Habe grade mal im Install-Tool unter All Configuration geschaut... aber nichts entsprechendes gefunden.

Kannst Du mir sagen wo ich das finde?

Gruß
Michaela

Michaela-Ww ·
Dander schrieb

auch unter database analyser

Ich glaube langsam ich bin echt zu blöd für Typo.
Ich kann dort nichts entsprechendes finden.

Hilfe.....

Michaela-Ww ·
Dander schrieb

war jetzt mal im installtool und hab nachgeschaut,

das heißt:

Dump static data IMPORT

Ich habe alle Rubriken im Installtool durchgesehen.
Ich kann mich auch daran erinnern das ich das früher schonmal gesehen habe... aber jetzt ist es nirgens mehr zu finden.

Gibt es noch eine andere Möglichkeit die contents wieder zu finden?

Dander ·

mir fällt momentan nochts ein siehst du den content in typo3 noch???

hat dein provider vielleicht ein datenbank backup gemacht das er wieder aufspielen kann????