Datenbank upload Problem

Probleme bei der regulären Arbeiten mit phpBB, Fragen zu Vorgehensweisen oder Funktionsweise sowie sonstige Fragen zu phpBB im Allgemeinen.
Forumsregeln
phpBB 2.0 hat das Ende seiner Lebenszeit überschritten
phpBB 2.0 wird nicht mehr aktiv unterstützt. Insbesondere werden - auch bei Sicherheitslücken - keine Patches mehr bereitgestellt. Der Einsatz von phpBB 2.0 erfolgt daher auf eigene Gefahr. Wir empfehlen einen Umstieg auf phpBB 3.1, welches aktiv weiterentwickelt wird und für welches regelmäßig Updates zur Verfügung gestellt werden.
Antworten
FarChris
Mitglied
Beiträge: 1150
Registriert: 29.10.2004 22:40

Datenbank upload Problem

Beitrag 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?
spritzpistole
Mitglied
Beiträge: 1287
Registriert: 02.10.2004 00:25
Wohnort: Haßloch
Kontaktdaten:

Beitrag 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. 
Benutzeravatar
DSB
Mitglied
Beiträge: 172
Registriert: 21.08.2004 12:31
Wohnort: bei Bremen
Kontaktdaten:

Beitrag 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.
Antworten

Zurück zu „phpBB 2.0: Administration, Benutzung und Betrieb“