473,549 Members | 2,531 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Kindly, help fixing error 1064

1 New Member
Hello everyone and thank you in advance,

This is been driving me crazy, in running the following query, I get the error 1064, below please find the full query and the error message.
There must be errors everywhere becuase I tried removing one line at a time to pinpoint the error, and the error comes up the same on the lines I did not remove.

Note: the syntax error is in the:
Tabellenstruktu r für Tabelle `hdb_member`
And in the:
Tabellenstruktu r für Tabelle `rpf_upload`

I was able to Successfully run the:
Tabellenstruktu r für Tabelle `hdb_config`


Full query:

-- phpMyAdmin SQL Dump
-- version 2.11.9.1
-- http://www.phpmyadmin. net
--
-- Host: `localhost`
-- Erstellungszeit : 06. Oktober 2009 um 20:31
-- Server Version: 5.0.32
-- PHP-Version: 5.2.10

SET SQL_MODE="NO_AU TO_VALUE_ON_ZER O";

--
-- Datenbank: `tdcocom_Ao0Pj6 5`
--

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

--
-- Tabellenstruktu r für Tabelle `hdb_config`
--

DROP TABLE IF EXISTS `hdb_config`;
CREATE TABLE IF NOT EXISTS `hdb_config` (
`id` int(1) NOT NULL,
`login` text collate latin1_german2_ ci NOT NULL,
`passw` text collate latin1_german2_ ci NOT NULL,
KEY `id` (`id`)
) ENGINE=MyISAM DEFAULT CHARSET=latin1 COLLATE=latin1_ german2_ci;

--
-- Daten für Tabelle `hdb_config`
--

INSERT INTO `hdb_config` (`id`, `login`, `passw`) VALUES
(0, 'admin', 'ViCoM');

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

--
-- Tabellenstruktu r für Tabelle `hdb_member`
--

DROP TABLE IF EXISTS `hdb_member`;
CREATE TABLE IF NOT EXISTS `hdb_member` (
`id` int(11) NOT NULL,
`since` varchar(10) collate latin1_german2_ ci NOT NULL,
`anrede` tinytext collate latin1_german2_ ci NOT NULL,
`name` text collate latin1_german2_ ci NOT NULL,
`vorname` text collate latin1_german2_ ci NOT NULL,
`strasse` text collate latin1_german2_ ci NOT NULL,
`plz` varchar(5) collate latin1_german2_ ci NOT NULL,
`ort` text collate latin1_german2_ ci NOT NULL,
`telefon` text collate latin1_german2_ ci NOT NULL,
`email` text collate latin1_german2_ ci NOT NULL,
`bezahlt` int(1) NOT NULL,
`aktiv` int(1) NOT NULL,
`benutzername` text collate latin1_german2_ ci NOT NULL,
`passwort` varchar(25) collate latin1_german2_ ci NOT NULL,
`mailgesendet` int(11) NOT NULL,
KEY `id` (`id`)
ENGINE=MyISAM DEFAULT CHARSET=latin1 COLLATE=latin1_ german2_ci);

--
-- Daten für Tabelle `hdb_member`
--

INSERT INTO `hdb_member` (`id`, `since`, `anrede`, `name`, `vorname`, `strasse`, `plz`, `ort`, `telefon`, `email`, `bezahlt`, `aktiv`, `benutzername`, `passwort`, `mailgesendet`) VALUES
(1, '1254489156', 'Herr', 'Testarius', 'Testermann', 'Testweg 12', '11223', 'Teststadt', '1231212', 'tester@vionlin k.de', 1, 0, 'test', '123456', 1),
(2, '1254556333', 'Herr', 'Testfrau', 'Zwotarius', 'Teststrasa 34', '12345', 'Bremen', '1212112121', 'unicef@vionlin k.de', 0, 0, '', '', 0),
(3, '1254562681', 'Herr', 'tester', 'tester', 'testsrt', '46240', 'Bottrop', '02041', 'mh@mhproducts. de', 0, 0, '', '', 0),
(4, '1254569093', 'Herr', 'xxxxxxx', 'xxxxxxxxxxxxxx ', 'xxxxxxxxxxxxx' , '46240', 'xxxxxxxxxxx', '00000', 'mhp@mhproducts .de', 0, 0, '', '', 0),
(5, '1254765478', 'Herr', 'test', 'tester', 'gdgdgdg.12', '46240', 'Bottrop', '212121', '2@lust-amateure.de', 0, 0, '', '', 0),
(6, '1254844588', 'Herr', 'hhh', 'dd', 'dddd', '4546', 'Bottrop', '12', 'mh@mhproducts. de', 0, 0, '', '', 0),
(7, '1254846743', 'Herr', 'rrrrr', 'rrrrrr', 'fffffffffffff' , '34567', 'Bottrop', '12', 'mh@mhproducts. de', 0, 0, '', '', 0),
(8, '1254847178', 'Herr', 'ggg', 'ss', 'sssssss', '46240', 'Bottrop', '12', 'mh@mhproducts. de', 0, 0, '', '', 0),
(9, '1254847544', 'Herr', 'rainer', 'jjjjs', 'ssssssss', '58965', 'Bottrop', '23', 'mh@mhproducts. de', 0, 0, '', '', 0),
(10, '1254848248', 'Herr', 'ee', 'eeeeee', 'eeeeeeeee', '46240', 'eeeeee', '020415', 'mh@mhproducts. de', 0, 0, '', '', 0),
(11, '1254848583', 'Herr', 'ttttt', 'ssssss', 'sssss', '46240', 'ssss', '45454', 'mh@mhproducts. de', 0, 0, '', '', 0),
(12, '1254853231', 'Herr', 'tettttd', 'ddddd', 'ddddddddddd', '46240', 'Bottrop', '456845', 'mh@mhproducts. de', 0, 0, '', '', 0);

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

--
-- Tabellenstruktu r für Tabelle `rpf_upload`
--

DROP TABLE IF EXISTS `rpf_upload`;
CREATE TABLE IF NOT EXISTS `rpf_upload` (
`id` int(11) NOT NULL auto_increment,
`titel` varchar(80) collate latin1_german2_ ci default NULL,
`text` text collate latin1_german2_ ci,
`fname` varchar(80) collate latin1_german2_ ci default NULL,
`size` int(11) default '0',
`datum` timestamp NOT NULL default CURRENT_TIMESTA MP on update CURRENT_TIMESTA MP,
PRIMARY KEY (`id`)
) ENGINE=MyISAM DEFAULT CHARSET=latin1 COLLATE=latin1_ german2_ci AUTO_INCREMENT= 8 ;

--
-- Daten für Tabelle `rpf_upload`
--

INSERT INTO `rpf_upload` (`id`, `titel`, `text`, `fname`, `size`, `datum`) VALUES
(6, 'Heißes Shooting', 'Hier ein Bilderpack von mir mit 50 heißen Fotos. Seht hocherotische Aufnahmen von mir Nackt und in verschiedenen heißen Outfits und Reizwäsche.', 'Video2.flv', 12752, '2009-10-06 15:18:28'),
(7, 'Der Frauen Besuch', 'Man sagt doch so schön... ein wenig Bi schadet nie... auch ich bin dieser Vorliebe nicht abgeneigt wir ihr in diesem Video sehen könnt. Hardcore Pur !', 'Video3.flv', 12752, '2009-10-06 15:23:25');


*************** *************** *************** ************

Error

SQL query:

CREATE TABLE IF NOT EXISTS `hdb_member` (
`id` int( 11 ) NOT NULL ,
`since` varchar( 10 ) COLLATE latin1_german2_ ci NOT NULL ,
`anrede` tinytext COLLATE latin1_german2_ ci NOT NULL ,
`name` text COLLATE latin1_german2_ ci NOT NULL ,
`vorname` text COLLATE latin1_german2_ ci NOT NULL ,
`strasse` text COLLATE latin1_german2_ ci NOT NULL ,
`plz` varchar( 5 ) COLLATE latin1_german2_ ci NOT NULL ,
`ort` text COLLATE latin1_german2_ ci NOT NULL ,
`telefon` text COLLATE latin1_german2_ ci NOT NULL ,
`email` text COLLATE latin1_german2_ ci NOT NULL ,
`bezahlt` int( 1 ) NOT NULL ,
`aktiv` int( 1 ) NOT NULL ,
`benutzername` text COLLATE latin1_german2_ ci NOT NULL ,
`passwort` varchar( 25 ) COLLATE latin1_german2_ ci NOT NULL ,
`mailgesendet` int( 11 ) NOT NULL ,
KEY `id` ( `id` ) ENGINE = MYISAM DEFAULT CHARSET = latin1 COLLATE = latin1_german2_ ci
);

MySQL said: Documentation
#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 'ENGINE=MyISAM DEFAULT CHARSET=latin1 COLLATE=latin1_ german2_ci)' at line 18

Kind regards, Vincent
Jan 4 '12 #1
0 1324

Sign in to post your reply or Sign up for a free account.

Similar topics

0
1429
by: Morten Gulbrandsen | last post by:
USE company; # SHOW INNODB STATUS; DROP TABLE IF EXISTS DEPARTMENT; CREATE TABLE DEPARTMENT ( DNAME VARCHAR(15) NOT NULL, DNUMBER INT NOT NULL,
0
1193
by: Morten Gulbrandsen | last post by:
C:\mysql\bin>mysql -u elmasri -pnavathe company Welcome to the MySQL monitor. Commands end with ; or \g. Your MySQL connection id is 29 to server version: 4.1.0-alpha-max-debug Type 'help;' or '\h' for help. Type '\c' to clear the buffer. mysql> select database(); +------------+ | database() | +------------+
3
9832
by: supermonkey1 | last post by:
i have zen-cart database in my computer I export into a file then when i try to import this database file to my webhost i get such error how to fix it? thx #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 CHARSET=latin1...
13
12210
by: wideangle | last post by:
Hello there! I know it's stupid, but when creating a table in a mysql (win32) database, it won't let me create this "mytable". Here goes my ER_PARSE_ERROR. mysql> CREATE TABLE `mytable` ( -> `mytable_id` int(25) NOT NULL auto_increment, -> `mytable_title` varchar(100) NOT NULL default '', -> `mytable_dts` varchar(25) NOT NULL...
2
4204
by: mmoor | last post by:
mysql_query("SELECT name, street, url, extra1, extra2, i0+i1+i2+i3+i4 AS incoming, o0+o1+o2+o3 AS rent, s0+s1+s2 AS wohnung FROM amigo WHERE top='1' AND status='1' AND ($row) ORDER BY $row"); brings this error MySQL error no. 1064 occured: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for...
3
2922
by: dipperdan | last post by:
Hi, I'm getting an error 1064 when trying to delete some rows from a table. SQL is: DELETE FROM images WHERE image_id = 803 AND plant_num = 2277 LIMIT 1; DELETE FROM images WHERE image_id = 804 AND plant_num = 2277 LIMIT 1; DELETE FROM images WHERE image_id = 805 AND plant_num = 2277 LIMIT 1;
2
4307
by: amaddox | last post by:
When I run this query from PHPMyAdmin, it works: DELETE FROM `tbl_user_link` WHERE ((`ulUserID`!=3 AND `ulConnectID`! =1) AND (`ulUserID`!=18 AND `ulConnectID`!=23)) AND `ulTypeID`=10 AND `ulOtherID`=160 However, when I run it from my application, I get a MySQL error 1064. Any ideas?
3
4946
by: phobia1 | last post by:
Hi once again. We have just changed our ISP and things that worked fine now do not, Obviously its in the differences of MYSQL and PHP versions. Have fixed most of the problems but this UPDATE routine has got me foxed. <?PHP // update.php require("./resources/globals.php") ; require("./resources/common.php") ; //echo $detail;
1
2774
by: Taylor Colpitts | last post by:
I received #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 'WHERE customer_id=1' at line 1 My query is: INSERT INTO customers (mce) VALUES ('I like apples') WHERE customer_id=1 Any ideas?
2
6157
by: Doug Gentry | last post by:
In my book build your own database driven web site using php and mysql on page 61 it's covering creating a table. I think I'm typing this in correctly and I'm getting a error. I just don't see what I'm typing in wrong unless it's the : but in the book it almost looks like 2 of those on top of each other. This is what I get.. mysql> CREATE...
0
7526
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main...
0
7457
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language...
0
7723
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. ...
1
7483
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For...
0
7817
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the...
1
5375
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes...
0
3487
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
1949
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
1
1063
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.