Seite 1 von 1

Datenbank upload Problem

Verfasst: 15.06.2006 19:27
von FarChris
Hallo,
ich wollte meine Datenbank wiederherstellen.
Ich habe zuerst versucht die .sql Datei via phpMyAdmin hochzuladen und nachher per SSH. Es kommt immer folgender Fehler:

Code: Alles auswählen

Fehler

SQL-Befehl:

--
-- Tabellenstruktur für Tabelle `phpbb_auth_access`
-- 
CREATE TABLE `phpbb_auth_access` (
`group_id` mediumint( 8 ) NOT NULL default '0',
`forum_id` smallint( 5 ) unsigned NOT NULL default '0',
`auth_view` tinyint( 1 ) NOT NULL default '0',
`auth_read` tinyint( 1 ) NOT NULL default '0',
`auth_post` tinyint( 1 ) NOT NULL default '0',
`auth_reply` tinyint( 1 ) NOT NULL default '0',
`auth_edit` tinyint( 1 ) NOT NULL default '0',
`auth_delete` tinyint( 1 ) NOT NULL default '0',
`auth_sticky` tinyint( 1 ) NOT NULL default '0',
`auth_announce` tinyint( 1 ) NOT NULL default '0',
`auth_vote` tinyint( 1 ) NOT NULL default '0',
`auth_pollcreate` tinyint( 1 ) NOT NULL default '0',
`auth_attachments` tinyint( 1 ) NOT NULL default '0',
`auth_mod` tinyint( 1 ) NOT NULL default '0',
KEY `group_id` ( `group_id` ) ,
KEY `forum_id` ( `forum_id` )
) ENGINE = MYISAM DEFAULT CHARSET = latin1

MySQL meldet: Dokumentation
#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 '--
-- Tabellenstruktur für Tabelle `phpbb_auth_access`
-- 

CREATE TABL' at line 1 

So fängt meine .sql Datei an:

Code: Alles auswählen

-- 
-- Tabellenstruktur für Tabelle `phpbb_auth_access`
-- 

CREATE TABLE `phpbb_auth_access` (
  `group_id` mediumint(8) NOT NULL default '0',
  `forum_id` smallint(5) unsigned NOT NULL default '0',
  `auth_view` tinyint(1) NOT NULL default '0',
  `auth_read` tinyint(1) NOT NULL default '0',
  `auth_post` tinyint(1) NOT NULL default '0',
  `auth_reply` tinyint(1) NOT NULL default '0',
  `auth_edit` tinyint(1) NOT NULL default '0',
  `auth_delete` tinyint(1) NOT NULL default '0',
  `auth_sticky` tinyint(1) NOT NULL default '0',
  `auth_announce` tinyint(1) NOT NULL default '0',
  `auth_vote` tinyint(1) NOT NULL default '0',
  `auth_pollcreate` tinyint(1) NOT NULL default '0',
  `auth_attachments` tinyint(1) NOT NULL default '0',
  `auth_mod` tinyint(1) NOT NULL default '0',
  KEY `group_id` (`group_id`),
  KEY `forum_id` (`forum_id`)
) ENGINE=MyISAM DEFAULT CHARSET=latin1;

-- 
-- Daten für Tabelle `phpbb_auth_access`
...
...
...
...
An was liegt das Problem?

Verfasst: 15.06.2006 19:46
von spritzpistole
Probier es mal mit:
http://www.mysqldumper.de/de/

Code: Alles auswählen

MySqlDumper (Hersteller: D.Schlichtholz & S.Kamper), (PHP, Frontend, Freeware)
MySQL Dumper ist eine Backuproutine für MySQL-Datenbanken, geschrieben in PHP und Perl. Es umgeht den "Timeout-Error" mit Hilfe eines kleinen Tricks: Es liest nur eine bestimmte Anzahl von Befehlen aus der Tabelle aus, merkt sich wie weit es gekommen ist und ruft sich anschließend selbst auf. 

Verfasst: 02.07.2006 22:49
von DSB
Dein Server erkennt die -- am Anfang einer Zeile nicht als Kommentar und schickt sie zum MySQL-Server.
Mit MySQLDumper kein Problem, da er diese Zeilen selbstständig rausfiltert.