473,398 Members | 2,165 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,398 software developers and data experts.

how to fix error #1064 ?

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 AUTO_INCREMENT=2' at line 35
Jul 20 '05 #1
3 9823
Please give the full query.


"supermonkey1" <fu********@hotmail.com> wrote in message
news:f5**************************@posting.google.c om...
: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 AUTO_INCREMENT=2' at line 35
Jul 20 '05 #2
supermonkey1 wrote:
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 AUTO_INCREMENT=2' at line 35

Need full query but my guess is that your autoincrement variable is the
problem. I would run a test by removing the autoincrement part of the
query and re-run it to see if you get the error but I think you won't.
I do not rememeber how to fix the incrementation though after the
restore from the file. :-(

Regards,

Wendell
Jul 20 '05 #3
It can also be that the charset should be quoted; 'latin1'
But he did probable fix it, because he did not post the full query :)
"Wendell Jones" <wp*******@yahoo.com> wrote in message
news:nM********************@comcast.com...
: supermonkey1 wrote:
: > 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 AUTO_INCREMENT=2' at line 35
: Need full query but my guess is that your autoincrement variable is the
: problem. I would run a test by removing the autoincrement part of the
: query and re-run it to see if you get the error but I think you won't.
: I do not rememeber how to fix the incrementation though after the
: restore from the file. :-(
:
: Regards,
:
: Wendell
Jul 20 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: Kenneth Illingsworth | last post by:
--=_603E7359.5B3A569C Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: quoted-printable Content-Disposition: inline I suspect that this is some kind of issue with...
0
by: Ola Ogunneye | last post by:
--=_104E0413.12733F99 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit I am running mysql 4.0.13 and using a weblog(Geeklog) to do my web. Using geeklog as been okay...
0
by: Ola Ogunneye | last post by:
--=_075912CF.F899D547 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Hello again all, I have created an account in the particular database that I was trying to...
0
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...
0
by: Morten Gulbrandsen | last post by:
mysql> USE company; Database changed mysql> mysql> DROP TABLE IF EXISTS EMPLOYEE; -------------- DROP TABLE IF EXISTS EMPLOYEE -------------- Query OK, 0 rows affected (0.00 sec)
2
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"); ...
3
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 =...
2
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...
3
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...
0
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
0
BarryA
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...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
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...
0
jinu1996
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...
0
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...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

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.