|
| |||||||||
| Tags: command, database, mysql database, mysqldump, syntax |
![]() |
| | Thread Tools | Search this Thread |
|
#1
| |||
| |||
| 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. |
|
#2
| ||||
| ||||
| 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. |
|
#3
| |||
| |||
| Re: Mysql dumpdatabase command
This are the following commands are useful with mysqldump : Code: mysqldump –-user [user name] –-password=[password] [database name] > [dump file] Code: mysqldump –u[user name] –p[password] [database name] > [dump file] |
|
#4
| |||
| |||
| 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 |
![]() |
|
| Thread Tools | Search this Thread |
| |
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 |