MySQL Forums
Forum List  »  Newbie

Re: How to get 'shell >' ?
Posted by: Claude Martin
Date: June 20, 2005 01:15PM

> well, the problem is when you want to run mysql
> tools that run on the shell.
> for example, how would you run mysqldump?

just type mysqldump plus the options you want. where's the problem?

> how will you backup your db?

to save the data into a file use this:

mysqldump --user=USERNAME --pass=PASSWORD --host=SERVERHOST --databases DATABASE > /PATH/FILE.SQL

then later to load the data into a database:

mysql --user=USERNAME --pass=PASSWORD --host=SERVERHOST DATABASE < /PATH/FILE.SQL

note:
- replace all in CAPITAL LETTERS
- the host is "localhost" if its on the same machine that you work on or else it's the IP-adress of it.
- on windoze you use a path like c:\path\to\file.sql


> therefore you need to get a shell.
> how do you get a shell?

you can use whatever operating system shell you like most. I use the GNOME-Terminal. on windoze NT/2K/XP it's "cmd" and I think on win95/98 it's "command".

http://animalliberation.tk http://veganismus.ch
http://maqi.de http://tierrechtskochbuch.de

Options: ReplyQuote


Subject
Written By
Posted
June 06, 2005 08:56AM
June 20, 2005 12:13PM
Re: How to get 'shell >' ?
June 20, 2005 01:15PM


Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.