Hope this is the right news group!!
I did a server upgrade and at the same time did a mysql update from
4.0.12 to Ver 12.22 Distrib 4.0.16
mach1# mysql --version
mysql Ver 12.22 Distrib 4.0.16, for portbld-freebsd4.9 (i386)
I attempted to restore the DB with
mysql> LOAD DATA INFILE /usr/home/adam/Temp_storage/mysqldump/dump_all;
and got the following Error message ==>
ERROR 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 '/usr/home/adam/Temp_storage/mysqldump/dump_all' at line 1
mysql>
Inspection of the dumped file ==>
head /usr/home/adam/Temp_storage/mysqldump/dump_all
-- MySQL dump 9.07
--
-- Host: localhost Database:
---------------------------------------------------------
-- Server version 4.0.12-log
--
-- Current Database: bpndb
--
Could someone advise
Thanks
-- Adam -- 7 7314
missing quote marks around the path, and missing table name?
Adam Smith wrote: Hope this is the right news group!!
I did a server upgrade and at the same time did a mysql update from 4.0.12 to Ver 12.22 Distrib 4.0.16
mach1# mysql --version mysql Ver 12.22 Distrib 4.0.16, for portbld-freebsd4.9 (i386)
I attempted to restore the DB with
mysql> LOAD DATA INFILE /usr/home/adam/Temp_storage/mysqldump/dump_all;
and got the following Error message ==>
ERROR 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 '/usr/home/adam/Temp_storage/mysqldump/dump_all' at line 1 mysql>
Inspection of the dumped file ==>
head /usr/home/adam/Temp_storage/mysqldump/dump_all -- MySQL dump 9.07 -- -- Host: localhost Database: --------------------------------------------------------- -- Server version 4.0.12-log
-- -- Current Database: bpndb --
Could someone advise
Thanks
-- Adam --
Thanks David
In doing a full mysqldump there are several hundred tables in the file ?
-- Adam --
David L wrote: missing quote marks around the path, and missing table name?
Adam Smith wrote:
Hope this is the right news group!!
I did a server upgrade and at the same time did a mysql update from 4.0.12 to Ver 12.22 Distrib 4.0.16
mach1# mysql --version mysql Ver 12.22 Distrib 4.0.16, for portbld-freebsd4.9 (i386)
I attempted to restore the DB with
mysql> LOAD DATA INFILE /usr/home/adam/Temp_storage/mysqldump/dump_all;
and got the following Error message ==>
ERROR 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 '/usr/home/adam/Temp_storage/mysqldump/dump_all' at line 1 mysql>
Inspection of the dumped file ==>
head /usr/home/adam/Temp_storage/mysqldump/dump_all -- MySQL dump 9.07 -- -- Host: localhost Database: --------------------------------------------------------- -- Server version 4.0.12-log
-- -- Current Database: bpndb --
Could someone advise
Thanks
-- Adam --
Hi David,
I should have mentioned that the dump itself contains 5 or 6 distinct
databases and all their tables ==> the full complement being about 250+
-- Adam --
David L wrote: missing quote marks around the path, and missing table name?
Adam Smith wrote:
Hope this is the right news group!!
I did a server upgrade and at the same time did a mysql update from 4.0.12 to Ver 12.22 Distrib 4.0.16
mach1# mysql --version mysql Ver 12.22 Distrib 4.0.16, for portbld-freebsd4.9 (i386)
I attempted to restore the DB with
mysql> LOAD DATA INFILE /usr/home/adam/Temp_storage/mysqldump/dump_all;
and got the following Error message ==>
ERROR 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 '/usr/home/adam/Temp_storage/mysqldump/dump_all' at line 1 mysql>
Inspection of the dumped file ==>
head /usr/home/adam/Temp_storage/mysqldump/dump_all -- MySQL dump 9.07 -- -- Host: localhost Database: --------------------------------------------------------- -- Server version 4.0.12-log
-- -- Current Database: bpndb --
Could someone advise
Thanks
-- Adam --
just reading up on the syntax again, and it looks to me you can't doing
all in one go. http://dev.mysql.com/doc/mysql/en/LOAD_DATA.html
From looking on mysqldump, http://dev.mysql.com/doc/mysql/en/mysqldump.html,
I think you'd just play back the dump files in the mysql console. (but
i have no experience in doing that)
Have a look at http://dev.mysql.com/doc/mysql/en/mysqlhotcopy.html as
another way to do backup (much quicker).
Adam Smith wrote: Hi David, I should have mentioned that the dump itself contains 5 or 6 distinct databases and all their tables ==> the full complement being about 250+ -- Adam --
David L wrote:
missing quote marks around the path, and missing table name?
Adam Smith wrote:
Hope this is the right news group!!
I did a server upgrade and at the same time did a mysql update from 4.0.12 to Ver 12.22 Distrib 4.0.16
mach1# mysql --version mysql Ver 12.22 Distrib 4.0.16, for portbld-freebsd4.9 (i386)
I attempted to restore the DB with
mysql> LOAD DATA INFILE /usr/home/adam/Temp_storage/mysqldump/dump_all;
and got the following Error message ==>
ERROR 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 '/usr/home/adam/Temp_storage/mysqldump/dump_all' at line 1 mysql>
Inspection of the dumped file ==>
head /usr/home/adam/Temp_storage/mysqldump/dump_all -- MySQL dump 9.07 -- -- Host: localhost Database: --------------------------------------------------------- -- Server version 4.0.12-log
-- -- Current Database: bpndb --
Could someone advise
Thanks
-- Adam --
Hi David,
I was just wondering if the problem was more pervasive than I had
thought, so I began looking at the whole sytem setup, which I only just
acquired, I have a new post Subj: MySQL setup, Another twist - To
mysqldump restoration ?, which I just posted. May want to take a look at
it, if you will.
Thanks
-- Adam --
David L wrote: just reading up on the syntax again, and it looks to me you can't doing all in one go. http://dev.mysql.com/doc/mysql/en/LOAD_DATA.html
From looking on mysqldump, http://dev.mysql.com/doc/mysql/en/mysqldump.html,
I think you'd just play back the dump files in the mysql console. (but i have no experience in doing that)
Have a look at http://dev.mysql.com/doc/mysql/en/mysqlhotcopy.html as another way to do backup (much quicker).
Adam Smith wrote:
Hi David, I should have mentioned that the dump itself contains 5 or 6 distinct databases and all their tables ==> the full complement being about 250+ -- Adam --
David L wrote:
missing quote marks around the path, and missing table name?
Adam Smith wrote:
Hope this is the right news group!!
I did a server upgrade and at the same time did a mysql update from 4.0.12 to Ver 12.22 Distrib 4.0.16
mach1# mysql --version mysql Ver 12.22 Distrib 4.0.16, for portbld-freebsd4.9 (i386)
I attempted to restore the DB with
mysql> LOAD DATA INFILE /usr/home/adam/Temp_storage/mysqldump/dump_all;
and got the following Error message ==>
ERROR 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 '/usr/home/adam/Temp_storage/mysqldump/dump_all' at line 1 mysql>
Inspection of the dumped file ==>
head /usr/home/adam/Temp_storage/mysqldump/dump_all -- MySQL dump 9.07 -- -- Host: localhost Database: --------------------------------------------------------- -- Server version 4.0.12-log
-- -- Current Database: bpndb --
Could someone advise
Thanks
-- Adam --
"Adam Smith" <ad*******@econ.com> wrote in message
news:nf********************@speakeasy.net...
[SNIP] ERROR 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 '/usr/home/adam/Temp_storage/mysqldump/dump_all' at line 1 mysql>
[SNIP] -- Host: localhost Database: --------------------------------------------------------- -- Server version 4.0.12-log
[SNIP]
I've also had problems doing this.
Solution.... Delete the line of dashes!
Worked for me!
I always have to change the -- to # to get it to work. Also, I usually do
$ mysql -u me -p tableName < fileName
I've only used LOAD_DATA... for csv type files. This is what has worked for me.
"2metre" <ne**@hersham.net> wrote in message news:<cc**********@sparta.btinternet.com>... "Adam Smith" <ad*******@econ.com> wrote in message news:nf********************@speakeasy.net... [SNIP] ERROR 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 '/usr/home/adam/Temp_storage/mysqldump/dump_all' at line 1 mysql> [SNIP] -- Host: localhost Database: --------------------------------------------------------- -- Server version 4.0.12-log [SNIP]
I've also had problems doing this.
Solution.... Delete the line of dashes!
Worked for me! This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics
by: Frank |
last post by:
I can use mysqldump to create a .sql file backup of my data..
For importing how can I test to see if the DB exists, if it does
import the .sql
If not create the DB then import the .sql !
...
|
by: Todd Cary |
last post by:
I have a file produced by mysqldump and I need to restore it. Can
someone point me toward the instructions on how to do this?
Todd
--
--
MySQL General Mailing List
For list archives:...
|
by: Kim |
last post by:
How do I restore a single database (selectively) from a mysql dump of
many databases.
ie: I have a server with a few databases on it, I have run:
mysqldump --all-databases > all_databases.sql
...
|
by: Raffi |
last post by:
I use the --all-databases switch to backup my entire database.
Sometimes there's a need to restore individual databases or tables form
the backup file. What command should I use for this?
...
|
by: 21novembre |
last post by:
Hi all,
I got a quite strange problem when I tried to setup a database backup
shell. I put it this way:
"bin/mysqldump --opt --user=xxx --password=xxx DB > DB.bak"
However, error 1045 came to...
|
by: Raffi |
last post by:
Hi,
I'm developing a database application that uses numeric databases. At
this point not using numeric databases is not an option. Doing a
mysqldump works. However when trying to restore the...
|
by: Shiraz |
last post by:
i did "select * into outfile 'data.sql' from CDRS" to backup my data.
what is the reverse to get the data back in? it looks liek the fields
are delimited by tabs in the file.
tjanks
|
by: Chuck W1CEW |
last post by:
So we have a MySQL database that suddenly started reporting "can't
open *.ibd file" errors on InnoDB tables in phpMyAdmin. (MyISAM are
fine). To recover the data is all I want at this point -- so...
|
by: samalphins |
last post by:
I have very strange error
mysqldump: Got error: 1045: Access denied for user ''@'localhost' (using p
assword: YES) when trying to connect
I have installed mysql freshly with blank password...
|
by: Naresh1 |
last post by:
What is WebLogic Admin Training?
WebLogic Admin Training is a specialized program designed to equip individuals with the skills and knowledge required to effectively administer and manage Oracle...
|
by: antdb |
last post by:
Ⅰ. Advantage of AntDB: hyper-convergence + streaming processing engine
In the overall architecture, a new "hyper-convergence" concept was proposed, which integrated multiple engines and...
|
by: WisdomUfot |
last post by:
It's an interesting question you've got about how Gmail hides the HTTP referrer when a link in an email is clicked. While I don't have the specific technical details, Gmail likely implements measures...
|
by: Oralloy |
last post by:
Hello Folks,
I am trying to hook up a CPU which I designed using SystemC to I/O pins on an FPGA.
My problem (spelled failure) is with the synthesis of my design into a bitstream, not the C++...
|
by: Carina712 |
last post by:
Setting background colors for Excel documents can help to improve the visual appeal of the document and make it easier to read and understand. Background colors can be used to highlight important...
|
by: Rahul1995seven |
last post by:
Introduction:
In the realm of programming languages, Python has emerged as a powerhouse. With its simplicity, versatility, and robustness, Python has gained popularity among beginners and experts...
|
by: Johno34 |
last post by:
I have this click event on my form. It speaks to a Datasheet Subform
Private Sub Command260_Click()
Dim r As DAO.Recordset
Set r = Form_frmABCD.Form.RecordsetClone
r.MoveFirst
Do
If...
|
by: ezappsrUS |
last post by:
Hi,
I wonder if someone knows where I am going wrong below. I have a continuous form and two labels where only one would be visible depending on the checkbox being checked or not. Below is the...
|
by: jack2019x |
last post by:
hello, Is there code or static lib for hook swapchain present?
I wanna hook dxgi swapchain present for dx11 and dx9.
| |