473,511 Members | 14,799 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

#1064 - You have an error in your SQL syntax;

1 New Member
Hello. I'm having a problem with restoring a mysql database for wordpress when moved to a new host. When I try to execute the following command
Expand|Select|Wrap|Line Numbers
  1. DELIMITER ;;
  2. DELIMITER ;
  3. /*!40103 SET TIME_ZONE=@OLD_TIME_ZONE */;
  4.  
  5. /*!40101 SET SQL_MODE=@OLD_SQL_MODE */;
  6. /*!40014 SET FOREIGN_KEY_CHECKS=@OLD_FOREIGN_KEY_CHECKS */;
  7. /*!40014 SET UNIQUE_CHECKS=@OLD_UNIQUE_CHECKS */;
  8. /*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */;
  9. /*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */;
  10. /*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */;
  11. /*!40111 SET SQL_NOTES=@OLD_SQL_NOTES */;
  12.  


i get the following error message
Expand|Select|Wrap|Line Numbers
  1. #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 'DELIMITER' at line 1
  2.  
I would really apreciate if someone would help me, as I'm not an expert in mysql...

Thank you


Tilen
Jul 23 '08 #1
2 5391
Atli
5,058 Recognized Expert Expert
Hi Tilen. Welcome to Bytes!

That code doesn't really make sense. For one, I'm not sure you can use ;; as a custom delimiter. I wouldn't recommend it even it if was possible.
Also, even if it does work, the line after that just resets it, nullifying the first command.
And all the other lines are commented, so only the first two are actually being executed.

What is it that you are trying to do with this code?
How are you executing it?
(Through the CLI? or via a web interface like phpMyAdmin?)
Jul 24 '08 #2
coolsti
310 Contributor
Atli,

this looks a lot like the code that is auto generated when making a mysqldump.

I have also experienced some problems when migrating a database from one Linux machine to another, if the mysql versions did not match. Although the statements look like they are commented out, I got errors until I just went into my mysqldump file and deleted the lines.

Perhaps the OP is having a similar difficulty.
Jul 24 '08 #3

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

Similar topics

0
1510
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
2795
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
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...
3
9829
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...
13
12205
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` ( ->...
2
4198
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
7109
by: gomzi | last post by:
DELIMITER $$ DROP PROCEDURE IF EXISTS `tableselect` $$ CREATE PROCEDURE `tableselect`() BEGIN select * from table_a; END $$ DELIMITER ;
3
2917
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 =...
3
4940
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
7371
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,...
0
7432
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
7517
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...
0
5676
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,...
1
5077
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...
0
3230
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
3218
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
791
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
452
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

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.