Toon posts:

[MySQL] Datebase dump

Pagina: 1
Acties:
  • 38 views sinds 30-01-2008

Verwijderd

Topicstarter
Hoi allemaal,

Ik probeer een database van de ene server over te zetten naar de andere maar ik krijg constant een error in phpMyadmin:

CREATE TABLE `jos_artave_artists` (

`id` int( 11 ) NOT NULL AUTO_INCREMENT ,
`name` text NOT NULL ,
`genre` int( 11 ) NOT NULL default '0',
`website` text,
`website_alias` text,
`introtext` mediumtext,
`fulltext` mediumtext,
`image` text,
`published` tinyint( 1 ) NOT NULL default '0',
`ordering` int( 11 ) NOT NULL default '0',
`hits` int( 11 ) NOT NULL default '0',
`created_by` int( 11 ) NOT NULL default '0',
`created_on` varchar( 8 ) NOT NULL default '',
PRIMARY KEY ( `id` ) ENGINE = MYISAM DEFAULT CHARSET = utf8 AUTO_INCREMENT =5

MySQL retourneerde:

#1064 - You have an error in your SQL syntax near 'ENGINE=MyISAM DEFAULT CHARSET=utf8 AUTO_INCREMENT=5 ' at line 34


Iemand een idee?

Verwijderd

Voor ENGINE een extra ) zetten. Als je nu alles even netjes tabt, dan had je het wel kunnen zien.

Verwijderd

Topicstarter
Ook geprobeerd, zelfde error.


CREATE TABLE `jos_artave_artists` (

`id` int( 11 ) NOT NULL AUTO_INCREMENT ,
`name` text NOT NULL ,
`genre` int( 11 ) NOT NULL default '0',
`website` text,
`website_alias` text,
`introtext` mediumtext,
`fulltext` mediumtext,
`image` text,
`published` tinyint( 1 ) NOT NULL default '0',
`ordering` int( 11 ) NOT NULL default '0',
`hits` int( 11 ) NOT NULL default '0',
`created_by` int( 11 ) NOT NULL default '0',
`created_on` varchar( 8 ) NOT NULL default '',
PRIMARY KEY ( `id` )
) ENGINE = MYISAM DEFAULT CHARSET = utf8 AUTO_INCREMENT =5
MySQL retourneerde:

#1064 - You have an error in your SQL syntax near 'ENGINE=MyISAM DEFAULT CHARSET=utf8 AUTO_INCREMENT=5 ' at line 34

  • Megamind
  • Registratie: Augustus 2002
  • Laatst online: 10-09 22:45
Dan zou ik het nog maar eens proberen want bij mij doet ie het wel :)

PHP:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
Uw SQL-query is succesvol uitgevoerd. (Query duurde 0.0908 sec)SQL-query:CREATE TABLE `jos_artave_artists` (
`id` int( 11 ) NOT NULL AUTO_INCREMENT ,
`name` text NOT NULL ,
`genre` int( 11 ) NOT NULL default '0',
`website` text,
`website_alias` text,
`introtext` mediumtext,
`fulltext` mediumtext,
`image` text,
`published` tinyint( 1 ) NOT NULL default '0',
`ordering` int( 11 ) NOT NULL default '0',
`hits` int( 11 ) NOT NULL default '0',
`created_by` int( 11 ) NOT NULL default '0',
`created_on` varchar( 8 ) NOT NULL default '',
PRIMARY KEY ( `id` ) 
) ENGINE = MYISAM DEFAULT CHARSET = utf8 AUTO_INCREMENT =5

[ Voor 82% gewijzigd door Megamind op 08-02-2007 21:59 ]


  • Cavorka
  • Registratie: April 2003
  • Laatst online: 27-03-2018

Cavorka

Internet Entrepreneur

Zijn het dezelfde MySQL versies en dezelfde phpMyAdmin versies?

Van MySQL 4 naar 5 en terug wil nogal eens problemen geven in phpMyAdmin (dus een MySQL 4 geexporteerde table importeren in MySQL 5 via phpMyAdmin of vice versa); tenminste ik heb er nogal wat problemen mee gehad.

the-blueprints.com - The largest free blueprint collection on the internet: 50000+ drawings.


Verwijderd

Cavorka schreef op donderdag 08 februari 2007 @ 23:24:
Zijn het dezelfde MySQL versies en dezelfde phpMyAdmin versies?

Van MySQL 4 naar 5 en terug wil nogal eens problemen geven in phpMyAdmin (dus een MySQL 4 geexporteerde table importeren in MySQL 5 via phpMyAdmin of vice versa); tenminste ik heb er nogal wat problemen mee gehad.
Klopt, is echt ellende :( waarschijnlijk is: DEFAULT CHARSET = utf8 je probleem

[ Voor 5% gewijzigd door Verwijderd op 08-02-2007 23:26 ]


  • NMe
  • Registratie: Februari 2004
  • Laatst online: 20-11 11:59

NMe

Quia Ego Sic Dico.

Het is inderdaad een bekend probleem. Oudere versies van MySQL kunnen niet met die charset overweg en geven een error. Dat is echter best wel te vinden wanneer je die foutmelding in Google stopt, dus ik zou het fijn vinden als je de volgende keer iets meer tijd op Google spendeert. :)

'E's fighting in there!' he stuttered, grabbing the captain's arm.
'All by himself?' said the captain.
'No, with everyone!' shouted Nobby, hopping from one foot to the other.

Pagina: 1

Dit topic is gesloten.