Page 1 of 1

Problem beim Importieren...

PostPosted: 30. January 2007 15:25
by natco
Hallo zusammen!

Habe folgendes Problem:

Wenn ich versuche Tabellen in meine Datenbank mit phpMyAdmin zu importieren, kommt folgende Fehlermeldung:

"Error 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 '; -- -- Dumping data for table `attacks2` -- INSERT INTO `attacks2` VA' at line 29"

Zu importierende Tabelle:

-- phpMyAdmin SQL Dump
-- version 2.8.0.2
-- http://www.phpmyadmin.net
--
-- Host: localhost
-- Generation Time: Sep 12, 2006 at 11:04 AM
-- Server version: 4.1.19
-- PHP Version: 4.4.2
--
-- Database:
--

-- --------------------------------------------------------

--
-- Table structure for table `attacks2`
--

CREATE TABLE `attacks2` (
`id` int(10) unsigned NOT NULL auto_increment,
`attack_name` varchar(16) NOT NULL default '',
`do_what` varchar(16) NOT NULL default '',
`magic_number` int(11) NOT NULL default '0',
`learned_by` text NOT NULL,
`learn_at_level` int(11) NOT NULL default '0',
`game` int(11) NOT NULL default '0',
PRIMARY KEY (`id`),
KEY `id` (`id`)
) ENGINE=MyISAM AUTO_INCREMENT=5408 ;

--
-- Dumping data for table `attacks2`
--

INSERT INTO `attacks2` VALUES (5407, 'Flame', 'attack', 6, 'vPet 1', 0, 1);

-- --------------------------------------------------------

Weiß einer eine Lösung? Bin am verzweifeln...

Danke im Voraus!

PostPosted: 02. February 2007 00:03
by sari42
dein beispiel läßt sich problemlos importieren:
http://pma.cihar.com/trunk-config/index.php?db=test (wird gelegentlich gelöscht)

(evtl. hast du vergessen, die db vorher anzulegen/auszuwählen?)

PostPosted: 02. February 2007 09:31
by Mätes
überprüf mal die mysql-versionen.

zum einen die, mit der du das dump erstellt hast,
zum anderen die des servers, auf dem das import-file
eingelesen werden soll.

wenn es da große unterschiede gibt, wird es wohl daran liegen.

3.x und hohes 4.x verträgt sich meines wissens nach nicht
sehr gut.

zu dem thema gibt es auch ein paar threads hier im mysql-forum.

gruß ma