Please help with syntax for mysqldump

2004-01-13 Thread Matthew Stuart
I am really struggling with a mysqldump. I am trying to create a dump 
of a complete database called csi_db01 and I am trying to save the dump 
file to My Documents on the C drive.

I am sure I am doing right, but could somebody email me the full syntax 
to use which comes after the mysql

If I can't get the dump file to work, how do I get the database on my 
local machine up to the remote server. I am using version 4.0.15. Are 
there any bugs?

Thanks

Mat

--
MySQL General Mailing List
For list archives: http://lists.mysql.com/mysql
To unsubscribe:http://lists.mysql.com/[EMAIL PROTECTED]


Re: Please help with syntax for mysqldump

2004-01-13 Thread jeffrey_n_Dyke





I am really struggling with a mysqldump. I am trying to create a dump
of a complete database called csi_db01 and I am trying to save the dump
file to My Documents on the C drive.

I am sure I am doing right, but could somebody email me the full syntax
to use which comes after the mysql

if you could send errors you are getting that would be a help for us

One thing, you don't use mysqldump from the mysql prompt, you use it from
the msyql directory on your C:/Drive

--example
C:\mysqlbin/mysqldump -u yourusername -pyoupassword --alldatabases 
outfile.sql

specifying the password in the string is not the best way to go

hth
Jeff

If I can't get the dump file to work, how do I get the database on my
local machine up to the remote server. I am using version 4.0.15. Are
there any bugs?

Thanks

Mat




--
MySQL General Mailing List
For list archives: http://lists.mysql.com/mysql
To unsubscribe:http://lists.mysql.com/[EMAIL PROTECTED]






-- 
MySQL General Mailing List
For list archives: http://lists.mysql.com/mysql
To unsubscribe:http://lists.mysql.com/[EMAIL PROTECTED]



Re: Please help with syntax for mysqldump

2004-01-13 Thread zzapper
On Tue, 13 Jan 2004 14:07:38 +, Matthew Stuart
[EMAIL PROTECTED] wrote:

I am really struggling with a mysqldump. I am trying to create a dump 
of a complete database called csi_db01 and I am trying to save the dump 
file to My Documents on the C drive.

I am sure I am doing right, but could somebody email me the full syntax 
to use which comes after the mysql

mysqldump -udavidrayner -pdavidrayner eeetic  eeetic.sql

mysqldump -udavidrayner -pdavidrayner -A  all.sql


zzapper (vim  cygwin  zsh)
--

vim -c :%s/^/WhfgTNabgureRIvzSUnpxre/|:%s/[R-T]/ /Ig|:normal ggVGg?

http://www.vim.org/tips/tip.php?tip_id=305  Best of Vim Tips


-- 
MySQL General Mailing List
For list archives: http://lists.mysql.com/mysql
To unsubscribe:http://lists.mysql.com/[EMAIL PROTECTED]



Re: Please help with syntax for mysqldump

2004-01-13 Thread Hassan Schroeder
Matthew Stuart wrote:

I am really struggling with a mysqldump. I am trying to create a dump of 
a complete database called csi_db01 and I am trying to save the dump 
file to My Documents on the C drive.

I am sure I am doing right, but could somebody email me the full syntax 
to use which comes after the mysql
Run mysqldump from a shell (DOS) prompt, not from the mysql client.

Something like:

prompt% mysqldump -u root -prootpassword csi_db01

:: will dump to standard out; add the path to where you want to
save the dump, like:
prompt% mysqldump -uroot -p csi_db01  /path/to/dumpfile.sql

I'm not sure how a path with spaces -- My Documents -- is going
to work, but experiment (or pick another location). :-)
HTH!
--
Hassan Schroeder - [EMAIL PROTECTED]
Webtuitive Design ===  (+1) 408-938-0567   === http://webtuitive.com
  dream.  code.



--
MySQL General Mailing List
For list archives: http://lists.mysql.com/mysql
To unsubscribe:http://lists.mysql.com/[EMAIL PROTECTED]


Re: Please help with syntax for mysqldump

2004-01-13 Thread Matthew Stuart

mysqldump is run at the system command-line, not within the mysql 
client environment.
This is most likely to be my problem then. I assumed that what is 
called the system command line to be the mysql client environment. The 
tutorial book that I have been going through instructs me to issue this 
command in the start menus run dialogue box:

C:\Windows\Desktop cd C:\mysql\bin

and from there I have issued all commands in the black window.

Is this not the command line, and if not, what is?

Sorry for my ignorance, I am still a beginner.

Mat

--

Matthew Stuart
11 Yew Tree Close
Middleton Cheney
Banbury
Oxon
OX17 2SU
01295 713813
07803 207734
--

--
MySQL General Mailing List
For list archives: http://lists.mysql.com/mysql
To unsubscribe:http://lists.mysql.com/[EMAIL PROTECTED]


Re: Please help with syntax for mysqldump

2004-01-13 Thread zzapper
On Tue, 13 Jan 2004 14:07:38 +, Matthew Stuart
[EMAIL PROTECTED] wrote:

Similarly.

SELECT intDEVID,txtDEVPOSTCODE  INTO OUTFILE c:/aaa/dump.sql from
ytbl_development; 

(dump.sql file must NOT already  exist)

zzapper (vim  cygwin  zsh)
--

vim -c :%s/^/WhfgTNabgureRIvzSUnpxre/|:%s/[R-T]/ /Ig|:normal ggVGg?

http://www.vim.org/tips/tip.php?tip_id=305  Best of Vim Tips


-- 
MySQL General Mailing List
For list archives: http://lists.mysql.com/mysql
To unsubscribe:http://lists.mysql.com/[EMAIL PROTECTED]



Re: Please help with syntax for mysqldump

2004-01-13 Thread Andrew Boothman
Matthew Stuart wrote:

mysqldump is run at the system command-line, not within the mysql 
client environment.


This is most likely to be my problem then. I assumed that what is called 
the system command line to be the mysql client environment. The tutorial 
book that I have been going through instructs me to issue this command 
in the start menus run dialogue box:

C:\Windows\Desktop cd C:\mysql\bin

and from there I have issued all commands in the black window.

Is this not the command line, and if not, what is?
That is the command line.

Open a new Command Prompt in windows (something like 
Start-Programs-Accessories-Command Prompt)

Then type cd c:\mysql assuming that is where you installed MySQL then type :

bin\mysqldump -uusername -ppassword dbname csi_db01  c:\csi_db01.sql

This will create a file called csi_db01.sql in the base of your C: drive 
that contains all the SQL needed to recreate your table.

Note that the c:\mysql isn't strictly needed - and it would work just as 
well to type c:\mysq\bin\mysqldump in any folder in your system.

I'm sure this functionality definately works, so if you can't make it 
work then post back to the list and someone will realise what mistake 
you're making.

Andrew

[Also - most individuals choose not to disclose address and telephone 
numbers on public mailing lists because they are so widely distributed - 
espically popular ones like this. I'd suggest removing that information 
from your signature. But it's just a suggestion ;) ]

--
MySQL General Mailing List
For list archives: http://lists.mysql.com/mysql
To unsubscribe:http://lists.mysql.com/[EMAIL PROTECTED]