LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 05-18-2013, 07:02 AM   #1
said76
Member
 
Registered: Aug 2011
Posts: 113

Rep: Reputation: Disabled
syntax errors from mysqldump


Hi,

I am encountering the following errors when running my automysqlbackup on Ubuntu Server 12.04.02 LTS

mysqldump: Couldn't execute 'SET OPTION SQL_QUOTE_SHOW_CREATE=1': 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 'OPTION SQL_QUOTE_SHOW_CREATE=1' at line 1 (1064)
mysqldump: Couldn't execute 'SET OPTION SQL_QUOTE_SHOW_CREATE=1': 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 'OPTION SQL_QUOTE_SHOW_CREATE=1' at line 1 (1064)
mysqldump: Couldn't execute 'SET OPTION SQL_QUOTE_SHOW_CREATE=1': 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 'OPTION SQL_QUOTE_SHOW_CREATE=1' at line 1 (1064)

I am wondering if anyone might have come across these errors before and how to get around it.

Thank you in advance
 
Old 05-18-2013, 07:58 AM   #2
Habitual
LQ Veteran
 
Registered: Jan 2011
Location: Abingdon, VA
Distribution: Catalina
Posts: 9,374
Blog Entries: 37

Rep: Reputation: Disabled
Test manually using terminal >
Code:
mysqldump -uroot -p test > ./test.sql
This will dump the test db which I think is installed default these days. This is only a test. Please don't omit it.

Did you read the README?
It's discusses running the script and how.

http://bugs.mysql.com/bug.php?id=66765
 
Old 05-25-2013, 02:52 AM   #3
bloodstreetboy
Member
 
Registered: May 2012
Posts: 201
Blog Entries: 3

Rep: Reputation: 37
Quote:
Originally Posted by Habitual View Post
Test manually using terminal >
Code:
mysqldump -uroot -p test > ./test.sql
In this example -p test is specified, test is a name of database, it is not the password. See the exported file is test.sql, it takes backup of database test into test.sql.
In this case password is empty because by default there is no password for root (in lampp) and if you leave password field empty while mysql installation.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
mysqldump errors mrjoli021 Programming 1 10-03-2012 12:09 AM
syntax errors connect2janu Programming 1 04-09-2012 07:11 PM
mysqldump syntax for cron irvken Linux - General 3 03-07-2010 12:37 PM
couple C++ syntax errors bru Programming 8 05-16-2004 05:35 PM
declaration syntax errors with KYLIX rklosinski Programming 1 11-28-2002 01:49 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 09:11 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration