[MySql]#1064 Error

Vragen over Server-Side scripttalen (PHP, CGI, ASP, ...)

[MySql]#1064 Error

Berichtdoor Turkdale op za 27 feb 2010, 16:08

Namens een vriend post ik het ff op forum.

Hij wil iets invoegen in PHPmyadmin, een sql query dus maar krijgt de volgende error:
#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 '' at line 44

De SQL query:
  1.  CREATE TABLE IF NOT EXISTS `urp_houses` (  `hID` int(4) NOT NULL AUTO_INCREMENT`hDescription` varchar(32) NOT NULL DEFAULT 'House'`hEnterX` varchar(10) NOT NULL DEFAULT '0.0'`hEnterY` varchar(10) NOT NULL DEFAULT '0.0'`hEnterZ` varchar(10) NOT NULL DEFAULT '0.0'`hExitX` varchar(10) NOT NULL DEFAULT '0.0'`hExitY` varchar(10) NOT NULL DEFAULT '0.0'`hExitZ` varchar(10) NOT NULL DEFAULT '0.0'`hEnterInt` int(2) NOT NULL DEFAULT '0'`hEnterIVir` int(2) NOT NULL DEFAULT '0'`hExitInt` int(2) NOT NULL DEFAULT '0'`hExitVir` int(2) NOT NULL DEFAULT '0'`hLevel` int(2) NOT NULL DEFAULT '0'`hBought` int(1) NOT NULL DEFAULT '0'`hOwner` varchar(24) NOT NULL DEFAULT 'For Sale'`hPrice` int(10) NOT NULL DEFAULT '0'`hLock` int(1) NOT NULL DEFAULT '1'`hVehicle` int(3) NOT NULL DEFAULT '516'`hVehCol1` int(3) NOT NULL DEFAULT '-1'`hVehCol2` int(3) NOT NULL DEFAULT '-1'`hVehLock` int(1) NOT NULL DEFAULT '1'`hPaintjob` int(1) NOT NULL DEFAULT '255'`hVehX` varchar(10) NOT NULL DEFAULT '0.0'`hVehY` varchar(10) NOT NULL DEFAULT '0.0'`hVehZ` varchar(10) NOT NULL DEFAULT '0.0'`hVehA` varchar(10) NOT NULL DEFAULT '0.0'`hComp0` int(4) NOT NULL DEFAULT '0'`hComp1` int(4) NOT NULL DEFAULT '0'`hComp2` int(4) NOT NULL DEFAULT '0'`hComp3` int(4) NOT NULL DEFAULT '0'`hComp4` int(4) NOT NULL DEFAULT '0'`hComp5` int(4) NOT NULL DEFAULT '0'`hComp6` int(4) NOT NULL DEFAULT '0'`hComp7` int(4) NOT NULL DEFAULT '0'`hComp8` int(4) NOT NULL DEFAULT '0'`hComp9` int(4) NOT NULL DEFAULT '0'`hComp10` int(4) NOT NULL DEFAULT '0'`hComp11` int(4) NOT NULL DEFAULT '0'`hComp12` int(4) NOT NULL DEFAULT '0'`hComp13` int(4) NOT NULL DEFAULT '0'`hNotUsed` int(3) NOT NULL DEFAULT '0'PRIMARY KEY  (`hID`)) ENGINE=MyISAM DEFAULT CHARSET=latin1 AUTO_INCREMENT=1


Iemand een oplossing ?
Deze Post Staat Onder © Turkdale 2009-2010
[Turkdale.nl]
Avatar gebruiker
Turkdale
WSF+ Lid
 
Berichten: 208

Re: [MySql]#1064 Error

Berichtdoor erik_ark op za 27 feb 2010, 16:39

Als je DEFAULT CHARSET=latin1 op het einde weg haalt werkt ie dan wel?
erik_ark
WSF Lid
 
Berichten: 95

Re: [MySql]#1064 Error

Berichtdoor icemar op za 27 feb 2010, 16:45

Als ik hem importeer heb ik geen problemen.


Heb ff een dump gemaakt misschien werkt deze dan ook wel bij jouw.
  1. CREATE TABLE IF NOT EXISTS `urp_houses` (  `hID` int(4) NOT NULL AUTO_INCREMENT,  `hDescription` varchar(32) NOT NULL DEFAULT 'House',  `hEnterX` varchar(10) NOT NULL DEFAULT '0.0',  `hEnterY` varchar(10) NOT NULL DEFAULT '0.0',  `hEnterZ` varchar(10) NOT NULL DEFAULT '0.0',  `hExitX` varchar(10) NOT NULL DEFAULT '0.0',  `hExitY` varchar(10) NOT NULL DEFAULT '0.0',  `hExitZ` varchar(10) NOT NULL DEFAULT '0.0',  `hEnterInt` int(2) NOT NULL DEFAULT '0',  `hEnterIVir` int(2) NOT NULL DEFAULT '0',  `hExitInt` int(2) NOT NULL DEFAULT '0',  `hExitVir` int(2) NOT NULL DEFAULT '0',  `hLevel` int(2) NOT NULL DEFAULT '0',  `hBought` int(1) NOT NULL DEFAULT '0',  `hOwner` varchar(24) NOT NULL DEFAULT 'For Sale',  `hPrice` int(10) NOT NULL DEFAULT '0',  `hLock` int(1) NOT NULL DEFAULT '1',  `hVehicle` int(3) NOT NULL DEFAULT '516',  `hVehCol1` int(3) NOT NULL DEFAULT '-1',  `hVehCol2` int(3) NOT NULL DEFAULT '-1',  `hVehLock` int(1) NOT NULL DEFAULT '1',  `hPaintjob` int(1) NOT NULL DEFAULT '255',  `hVehX` varchar(10) NOT NULL DEFAULT '0.0',  `hVehY` varchar(10) NOT NULL DEFAULT '0.0',  `hVehZ` varchar(10) NOT NULL DEFAULT '0.0',  `hVehA` varchar(10) NOT NULL DEFAULT '0.0',  `hComp0` int(4) NOT NULL DEFAULT '0',  `hComp1` int(4) NOT NULL DEFAULT '0',  `hComp2` int(4) NOT NULL DEFAULT '0',  `hComp3` int(4) NOT NULL DEFAULT '0',  `hComp4` int(4) NOT NULL DEFAULT '0',  `hComp5` int(4) NOT NULL DEFAULT '0',  `hComp6` int(4) NOT NULL DEFAULT '0',  `hComp7` int(4) NOT NULL DEFAULT '0',  `hComp8` int(4) NOT NULL DEFAULT '0',  `hComp9` int(4) NOT NULL DEFAULT '0',  `hComp10` int(4) NOT NULL DEFAULT '0',  `hComp11` int(4) NOT NULL DEFAULT '0',  `hComp12` int(4) NOT NULL DEFAULT '0',  `hComp13` int(4) NOT NULL DEFAULT '0',  `hNotUsed` int(3) NOT NULL DEFAULT '0',  PRIMARY KEY (`hID`)) ENGINE=MyISAM  AUTO_INCREMENT=1
Avatar gebruiker
icemar
WSF Redactie
 
Berichten: 1263

Re: [MySql]#1064 Error

Berichtdoor Turkdale op za 27 feb 2010, 22:23

Ja, het probleem is er maar is onbekend..
De SQL query doet het dus wel op andere PHPmyadmins...
Vet raar-.-
Deze Post Staat Onder © Turkdale 2009-2010
[Turkdale.nl]
Avatar gebruiker
Turkdale
WSF+ Lid
 
Berichten: 208

Re: [MySql]#1064 Error

Berichtdoor Thumbnail op zo 07 maart 2010, 16:38

Turkdale schreef:Ja, het probleem is er maar is onbekend..
De SQL query doet het dus wel op andere PHPmyadmins...
Vet raar-.-

jouw PHPMyAdmin is dus (alweer) Fucked UP
beschikbaar via msn voor hulp...
Avatar gebruiker
Thumbnail
WSF+ Lid
 
Berichten: 368


Keer terug naar Server-side


Wie is er online

Gebruikers op dit forum: Geen geregistreerde gebruikers en 1 gast

Je bent niet ingelogd

Starthosting

Actueel