SitePoint Sponsor

User Tag List

Results 1 to 2 of 2
  1. #1
    SitePoint Wizard DoubleDee's Avatar
    Join Date
    Aug 2010
    Location
    Arizona
    Posts
    3,931
    Mentioned
    2 Post(s)
    Tagged
    0 Thread(s)

    How set location where mysqldump file is placed?

    How do I specify where the resultant "dump file" goes after I run mysqldump??

    I would like it to be placed here...

    Code:
    /Users/user1/Documents/DEV/++MySQL_backups
    I've been looking all over the Manual and can't figure out how to do this?!

    Sincerely,


    Debbie

  2. #2
    Barefoot on the Moon! silver trophy Force Flow's Avatar
    Join Date
    Jul 2003
    Location
    Northeastern USA
    Posts
    4,617
    Mentioned
    56 Post(s)
    Tagged
    1 Thread(s)
    You'll need to use the redirection operator ">".

    mysqldump --user=myuser --password=mypassword --host=localhost mydatabase > \www\myfolder\mydumpfile.sql
    Visit The Blog | Follow On Twitter
    301tool 1.1.5 - URL redirector & shortener (PHP/MySQL)
    Can be hosted on and utilize your own domain


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
  •