Results 1 to 4 of 4

Thread: Mysql dumpdatabase command

  1. #1
    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.

  2. #2
    Join Date
    May 2008
    Posts
    2,297

    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. #3
    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]

  4. #4
    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

Similar Threads

  1. Replies: 4
    Last Post: 13-01-2011, 01:08 AM
  2. mysql config file in MySQL
    By Netorious in forum Software Development
    Replies: 4
    Last Post: 18-03-2010, 09:43 PM
  3. Replies: 3
    Last Post: 07-11-2009, 09:36 PM
  4. Replies: 3
    Last Post: 03-09-2009, 05:41 PM
  5. Replies: 1
    Last Post: 18-05-2007, 01:24 AM

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Page generated in 1,714,255,017.11387 seconds with 17 queries