Hello,
My hosting company has MySQL 5 and so do I on my local Fedora Core 5
Linux machine. However, when I import a dump file from their
enviornment into mine, I get this error
ERROR 1064 (42000) at line 21428: 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 'TABLE `EC_SAVED_ORDER_LINE_ITEMS`
ADD CONSTRAINT `FK1_SAVED_ORDER_LINE_ITEMS` ' at line 3
This is the line (and those around it) from my file. It is complaining
about the first line. What is the problem?
ALTER TABLE `EC_SAVED_ORDER_LINE_ITEMS`
ADD CONSTRAINT `FK1_SAVED_ORDER_LINE_ITEMS` FOREIGN KEY
(`ORDER_FORM_PRINTER_ID`) REFERENCES `ORDER_FORM_PRINTERS`
(`ORDER_FORM_PRINTER_ID`) ON DELETE CASCADE,
ALTER TABLE `EC_SAVED_ORDER_LINE_ITEMS`
ADD CONSTRAINT `FK1_SAVED_ORDER_LINE_ITEMS` FOREIGN KEY
(`ORDER_FORM_PRINTER_ID`) REFERENCES `ORDER_FORM_PRINTERS`
(`ORDER_FORM_PRINTER_ID`) ON DELETE CASCADE, ADD CONSTRAINT
`FK2_SAVED_ORDER_LINE_ITEMS` FOREIGN KEY (`PRODUCT_ID`) REFERENCES
`PROD_PRODUCTS` (`PRODUCT_ID`) ON DELETE CASCADE,
ALTER TABLE `EC_SAVED_ORDER_LINE_ITEMS`
ADD CONSTRAINT `FK1_SAVED_ORDER_LINE_ITEMS` FOREIGN KEY
(`ORDER_FORM_PRINTER_ID`) REFERENCES `ORDER_FORM_PRINTERS`
(`ORDER_FORM_PRINTER_ID`) ON DELETE CASCADE, ADD CONSTRAINT
`FK2_SAVED_ORDER_LINE_ITEMS` FOREIGN KEY (`PRODUCT_ID`) REFERENCES
`PROD_PRODUCTS` (`PRODUCT_ID`) ON DELETE CASCADE, ADD CONSTRAINT
`FK3_SAVED_ORDER_LINE_ITEMS` FOREIGN KEY (`TRANSACTION_ID`) REFERENCES
`EC_SAVED_ORDERS` (`TRANSACTION_ID`) ON DELETE CASCADE;
Thanks, - Dave 3 9282
On 30 Oct 2006 09:33:41 -0800, in mailing.database.mysql la***********@zipmail.com
<11**********************@e3g2000cwe.googlegroups. comwrote:
>| Hello, | | My hosting company has MySQL 5 and so do I on my local Fedora Core 5 | Linux machine. However, when I import a dump file from their | enviornment into mine, I get this error | | ERROR 1064 (42000) at line 21428: 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 'TABLE `EC_SAVED_ORDER_LINE_ITEMS` | ADD CONSTRAINT `FK1_SAVED_ORDER_LINE_ITEMS` ' at line 3
The keyword is 'near'.
Have a look at the preceding lines as they're more likely to be
causing the problem.
--------------------------------------------------------------- jn******@yourpantsyahoo.com.au : Remove your pants to reply
---------------------------------------------------------------
Have you created table EC_SAVED_ORDER_LINE_ITEMS ??? la***********@zipmail.com wrote:
Hello,
My hosting company has MySQL 5 and so do I on my local Fedora Core 5
Linux machine. However, when I import a dump file from their
enviornment into mine, I get this error
ERROR 1064 (42000) at line 21428: 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 'TABLE `EC_SAVED_ORDER_LINE_ITEMS`
ADD CONSTRAINT `FK1_SAVED_ORDER_LINE_ITEMS` ' at line 3
This is the line (and those around it) from my file. It is complaining
about the first line. What is the problem?
ALTER TABLE `EC_SAVED_ORDER_LINE_ITEMS`
ADD CONSTRAINT `FK1_SAVED_ORDER_LINE_ITEMS` FOREIGN KEY
(`ORDER_FORM_PRINTER_ID`) REFERENCES `ORDER_FORM_PRINTERS`
(`ORDER_FORM_PRINTER_ID`) ON DELETE CASCADE,
ALTER TABLE `EC_SAVED_ORDER_LINE_ITEMS`
ADD CONSTRAINT `FK1_SAVED_ORDER_LINE_ITEMS` FOREIGN KEY
(`ORDER_FORM_PRINTER_ID`) REFERENCES `ORDER_FORM_PRINTERS`
(`ORDER_FORM_PRINTER_ID`) ON DELETE CASCADE, ADD CONSTRAINT
`FK2_SAVED_ORDER_LINE_ITEMS` FOREIGN KEY (`PRODUCT_ID`) REFERENCES
`PROD_PRODUCTS` (`PRODUCT_ID`) ON DELETE CASCADE,
ALTER TABLE `EC_SAVED_ORDER_LINE_ITEMS`
ADD CONSTRAINT `FK1_SAVED_ORDER_LINE_ITEMS` FOREIGN KEY
(`ORDER_FORM_PRINTER_ID`) REFERENCES `ORDER_FORM_PRINTERS`
(`ORDER_FORM_PRINTER_ID`) ON DELETE CASCADE, ADD CONSTRAINT
`FK2_SAVED_ORDER_LINE_ITEMS` FOREIGN KEY (`PRODUCT_ID`) REFERENCES
`PROD_PRODUCTS` (`PRODUCT_ID`) ON DELETE CASCADE, ADD CONSTRAINT
`FK3_SAVED_ORDER_LINE_ITEMS` FOREIGN KEY (`TRANSACTION_ID`) REFERENCES
`EC_SAVED_ORDERS` (`TRANSACTION_ID`) ON DELETE CASCADE;
Thanks, - Dave
also, i'd look at the table being referenced: order_form_printers and
make sure it's pk is set correctly.
davie wrote:
Have you created table EC_SAVED_ORDER_LINE_ITEMS ??? la***********@zipmail.com wrote:
>Hello,
My hosting company has MySQL 5 and so do I on my local Fedora Core 5 Linux machine. However, when I import a dump file from their enviornment into mine, I get this error
ERROR 1064 (42000) at line 21428: 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 'TABLE `EC_SAVED_ORDER_LINE_ITEMS` ADD CONSTRAINT `FK1_SAVED_ORDER_LINE_ITEMS` ' at line 3
This is the line (and those around it) from my file. It is complaining about the first line. What is the problem?
ALTER TABLE `EC_SAVED_ORDER_LINE_ITEMS` ADD CONSTRAINT `FK1_SAVED_ORDER_LINE_ITEMS` FOREIGN KEY (`ORDER_FORM_PRINTER_ID`) REFERENCES `ORDER_FORM_PRINTERS` (`ORDER_FORM_PRINTER_ID`) ON DELETE CASCADE, ALTER TABLE `EC_SAVED_ORDER_LINE_ITEMS` ADD CONSTRAINT `FK1_SAVED_ORDER_LINE_ITEMS` FOREIGN KEY (`ORDER_FORM_PRINTER_ID`) REFERENCES `ORDER_FORM_PRINTERS` (`ORDER_FORM_PRINTER_ID`) ON DELETE CASCADE, ADD CONSTRAINT `FK2_SAVED_ORDER_LINE_ITEMS` FOREIGN KEY (`PRODUCT_ID`) REFERENCES `PROD_PRODUCTS` (`PRODUCT_ID`) ON DELETE CASCADE, ALTER TABLE `EC_SAVED_ORDER_LINE_ITEMS` ADD CONSTRAINT `FK1_SAVED_ORDER_LINE_ITEMS` FOREIGN KEY (`ORDER_FORM_PRINTER_ID`) REFERENCES `ORDER_FORM_PRINTERS` (`ORDER_FORM_PRINTER_ID`) ON DELETE CASCADE, ADD CONSTRAINT `FK2_SAVED_ORDER_LINE_ITEMS` FOREIGN KEY (`PRODUCT_ID`) REFERENCES `PROD_PRODUCTS` (`PRODUCT_ID`) ON DELETE CASCADE, ADD CONSTRAINT `FK3_SAVED_ORDER_LINE_ITEMS` FOREIGN KEY (`TRANSACTION_ID`) REFERENCES `EC_SAVED_ORDERS` (`TRANSACTION_ID`) ON DELETE CASCADE;
Thanks, - Dave
This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics
by: Bruce A. Julseth |
last post by:
Newbie Question:
Is there a way to import MS Access into MySQL? Maybe create a CSV or
something. If so, what would be the SQL to do this?
Thanks...
Bruce
|
by: Golf Nut |
last post by:
This is a phpmyadmin question more than anything, but I hope someone may be
able to help. When creating a dump of a normalized database with 26 innodb
tables, phpmyadmin export seems to only export...
|
by: goonsquad |
last post by:
I have a multi-statement sql script that creates two temporary tables
and then runs a query on them. The query runs fine. However, I want
to use phpMyAdmin to export the data to .csv format. The...
|
by: news |
last post by:
Our production database in an exported textfil runs about 60 MB.
Compressed that's about 9 MB.
I'm trying to import the export into another machine running FC3 and
mySQL 11.18, and it appears as...
|
by: jaks |
last post by:
How can I export a MySQL table with a different name using phpmyadmin?
I want to export
nuke_bbsearch_wordmatch
and all it contents to
phpbb_search_wordmatch
This table in a different db. ...
|
by: Martin Herrman |
last post by:
Hi all,
I have installed MySQL on my Linux Mandrake 10 workstation; I didn't
change any default values (except for the user-accounts). I used a CMS to
create a website which I want to upload to...
|
by: Simon |
last post by:
Hi,
I need to export a 200MB database from one domain to another.
phpMyAdmin timeout after a while and is not ideal.
I don't mind spending money if I have to but this is rather urgent.
I...
|
by: NewbieSupreme |
last post by:
I'm using PHPMyAdmin on an Apache2Triad install (latest version; 5.x.x,
which installs PHP5 and PHPMyAdmin 2.8 as well). In Access, I exported a
table to a text file, tab-delimited, text qualifyer...
|
by: GarryJones |
last post by:
(I am sorry if this is the wrong group for this posting, I cant find a
group on usenet for phpmyadmin, but maybe someone would be nice enough
to answer me anyway....)
I need to import data into...
|
by: Charles Arthur |
last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
|
by: emmanuelkatto |
last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud.
Please let me know.
Thanks!
Emmanuel
|
by: BarryA |
last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
|
by: nemocccc |
last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
|
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...
|
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,...
|
by: jinu1996 |
last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
|
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...
|
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...
| |