Go Back   TechArena Community > Software > Software Development
Become a Member!
Forgot your username/password?
Register Tags Active Topics RSS Search Mark Forums Read SiteMap

Tags: , , , ,

Sponsored Links



Mysql dumpdatabase command

Software Development


Reply
 
Thread Tools Search this Thread
  #1  
Old 17-12-2009
Member
 
Join Date: Apr 2009
Posts: 79
Mysql dumpdatabase command

I am using Mysql database to maintain the record of employee data. I want to the information on mysqldump command. Can any one tell me how to use mysqldump and what are the syntax is use while declaring mysqldump command in mysql.
Reply With Quote
  #2  
Old 17-12-2009
Zecho's Avatar
Member
 
Join Date: May 2008
Posts: 2,267
Re: Mysql dumpdatabase command

Mysqldump command is used in mysql , it is a standalone and shouldn't be runing inside mysql. If you have either a shell or telnet access to your database server, you can backup the database using mysqldump. By default, the output of the command will dump the contents of the database in SQL statements to your console. Using mysqldump, you can backup a local database and restore it on a remote database at the same time, using a single command.
Reply With Quote
  #3  
Old 17-12-2009
Member
 
Join Date: Jan 2009
Posts: 199
Re: Mysql dumpdatabase command

This are the following commands are useful with mysqldump :


Code:
mysqldump –-user [user name] –-password=[password] [database name] > [dump file]
or

Code:
mysqldump –u[user name] –p[password] [database name] > [dump file]
Reply With Quote
  #4  
Old 17-12-2009
Member
 
Join Date: Dec 2008
Posts: 177
Re: Mysql dumpdatabase command

Usually you run mysqldump to create database copy: $ mysqldump -u user -p db-name > db-name.out

Copy db-name.out file using sftp/ssh to remote MySQL server: $ scp db-name.out user@site name:/backup

Restore database at remote server (login over ssh): $ mysql -u user -p db-name < db-name.out
Reply With Quote
Reply

  TechArena Community > Software > Software Development


Thread Tools Search this Thread
Search this Thread:

Advanced Search


Similar Threads for: "Mysql dumpdatabase command"
Thread Thread Starter Forum Replies Last Post
Unable to install MySQL and MySQL Workbench on Linux mint 10 Zared Windows Software 4 13-01-2011 01:08 AM
mysql config file in MySQL Netorious Software Development 4 18-03-2010 10:43 PM
Mysql Error : Can't connect to local mysql server through socket ' var lib mysql mysql.sock' 2 roshan45 Software Development 3 07-11-2009 09:36 PM
PROBLEM: COMMAND LINE OPTION SYNTAX ERROR. TYPE COMMAND /? FOR HEL FORTHELOVEOFGODPLEASEHELPME MediaCenter 3 03-09-2009 06:41 PM
autorun.inf - shell\..\command with command line parameter doesn'twork kakii Windows XP Support 1 18-05-2007 02:24 AM


All times are GMT +5.5. The time now is 11:28 AM.