Backup einspielen funktioniert nicht

Katrina
Ich muss blöderweise zum 1. Mal ein Backup einspielen.

Bei phpmyAdmin kommt allerdings die Fehlermeldung, dass z.B. bb1_access bereits existiert und dann hat er mir noch irgendwelche Fehler mit den Werten angezeigt (-1 statt 0 oder irgendwas mit NOT NULL).

Kann mir da irgendwie jemand helfen?
Shackles
Leer mal die Datenbank und spiel es dann nochmal ein, ich würd das sowieso nur mit dem MYSQL Dumper machen.
Katrina
Danke schon mal.

Gut, leere sie gleich und versuche es dann echt mal mit dem Dumper.

Edit: Nun zeigt mir der Dumper das hier an:

CREATE TABLE bb1_access ( boardid int(11) unsigned NOT NULL DEFAULT '0', userid int(11) unsigned NOT NULL DEFAULT '0', can_view_board tinyint(1) NOT NULL DEFAULT '-1', can_enter_board tinyint(1) NOT NULL DEFAULT '-1', can_read_thread tinyint(1) NOT NULL DEFAULT '-1', can_start_topic tinyint(1) NOT NULL DEFAULT '-1', can_reply_topic tinyint(1) NOT NULL DEFAULT '-1', can_post_poll tinyint(1) NOT NULL DEFAULT '-1', can_upload_attachments tinyint(1) NOT NULL DEFAULT '-1', can_download_attachments tinyint(1) NOT NULL DEFAULT '-1', can_post_without_moderation tinyint(1) NOT NULL DEFAULT '-1', can_close_own_topic tinyint(1) NOT NULL DEFAULT '-1', can_use_search tinyint(1) NOT NULL DEFAULT '-1', can_vote_poll tinyint(1) NOT NULL DEFAULT '-1', can_rate_thread tinyint(1) NOT NULL DEFAULT '-1', can_del_own_post tinyint(1) NOT NULL DEFAULT '-1', can_edit_own_post tinyint(1) NOT NULL DEFAULT '-1', can_del_own_topic tinyint(1) NOT NULL DEFAULT '-1', can_edit_own_topic tinyint(1) NOT NULL DEFAULT '-1', can_move_own_topic tinyint(1) NOT NULL DEFAULT '-1', can_use_post_html tinyint(1) NOT NULL DEFAULT '-1', can_use_post_bbcode tinyint(1) NOT NULL DEFAULT '-1', can_use_post_smilies tinyint(1) NOT NULL DEFAULT '-1', can_use_post_icons tinyint(1) NOT NULL DEFAULT '-1', can_use_post_images tinyint(1) NOT NULL DEFAULT '-1', PRIMARY KEY (userid, boardid) );
MySQL meldet:

Couldn't create table: bb1_access


War es denn richtig, die Tabellen in der Datenbank zu löschen oder sollte ich sie lediglich leeren?
Pilleslife
Nein, das sollte ok sein. Der Dumper sichert normalerweise auch die Datenbankstruktur.

Deine Fehlermeldung sagt ja, dass er eine Tabelle erstellen will.
Katrina
Aber es funktioniert nicht. Aus welchem Grund? Ich hasse Datenbanken. So ein Mist fröhlich verwirrt
onesworld
Hast du die Möglichkeit, dass Backup, welches du nun einspielen willst nochmal neu mit dem Dumper zu ziehen oder handelt es sich um den gleichen Speicherplatz? Denn der Dumper zickt manchmal etwas rum, wenn das Backup mit z.B. phpMyAdmin erstellt wurde.

Wenn gar nichts geht musst du entweder das Backup stückeln (falls es gross ist) und wieder per pma einspielen. Oder man müsste das Backup anpassen, damit der Dumper es richtig verarbeitet.

Sind beim Dumper die Rechte alle richtig gesetzt? --> stehen in der readme.
Pilleslife
So wie es aussieht, hat es jetzt geklappt.
Katrina
Ja, es klappt nun alles, aber ansonsten hätte mir Pilleslife ja zum Glück geholfen, denn ich wüsste ja nicht mal, wie man eine Backup-Datei stückelt Augen rollen Augenzwinkern