WCM Forum

WCM Forum (http://www.wcm.at/forum/index.php)
-   Programmierung (http://www.wcm.at/forum/forumdisplay.php?f=17)
-   -   Datenbank übersiedeln (http://www.wcm.at/forum/showthread.php?t=163712)

Naruto 15.04.2005 22:55

Datenbank übersiedeln
 
Hi Leute!

Ich habe ein problem beim Import/Exportieren einer Datenbank.

Beim Exportieren=alles auf standardeinstellungen mit gzip komprimierung

Das Importieren geht leider schief.

Er Spuckt mir folgene Meldung aufn Schirm:

SQL-Befehl:

-- phpMyAdmin SQL Dump
-- version 2.6.0-pl3
-- http://www.phpmyadmin.net
--
-- Host: localhost
-- Generation Time: Apr 15, 2005 at 10:47 PM
-- Server version: 4.1.8
-- PHP Version: 5.0.3
--
-- Database: `cms`
--
CREATE DATABASE `cms` DEFAULT CHARACTER SET latin1 COLLATE latin1_general_ci

#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 'DEFAULT CHARACTER SET latin1 COLLATE latin1_general_ci' at line

Ich arbeite mit PhpMyadmin(aktuellste Version) und auf beiden Server sind die Mysql benutzer identisch,Datenbank ist grad mal 50kb groß

kann mir jemand helfen? danke

jak 16.04.2005 11:28

1.) Probiers mal mit einem Strichpunkt am Ende des Befehls.
2.) Probier's mal ohne COLLATE.

CREATE DATABASE `cms` DEFAULT CHARACTER SET latin1;
Dann nimmt er die default collation. Ansonstenn erstell die db mal ohne default Character Set und probier das nachher mit ALTER DATABASE zu ändern.
http://dev.mysql.com/doc/mysql/en/charset-database.html

Jak


Alle Zeitangaben in WEZ +2. Es ist jetzt 09:16 Uhr.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
© 2009 FSL Verlag