Shell command for dump mysql database

shell_exec("mysqldump --opt --user=database_user_name --password=database_password --host=hostname database_name > path/$(date '+%m%d%Y-%H%M')__database_name_to_save.sql");
Advertisements

3 thoughts on “Shell command for dump mysql database

  1. shower head August 6, 2013 at 6:00 pm Reply

    Hi, yeah this paragraph is in fact nice and I have learned lot of things from
    it regarding blogging. thanks.

  2. dog bed for outside December 19, 2013 at 4:42 am Reply

    Hi there! I know this is kinda off topic nevertheless I’d figured I’d ask.
    Would you be interested in trading links or maybe guest authoring a blog post or
    vice-versa? My blog covers a lot of the same subjects as yours and I believe we could greatly benefit from each other.
    If you are interested feel free to send me an email. I
    look forward to hearing from you! Excellent blog by the way!

  3. how to setup a private blog network February 24, 2014 at 5:27 pm Reply

    Hey there! Someone in my Facebook group shared this website
    with us so I came to look it over. I’m definitely enjoying the
    information. I’m book-marking and will be tweeting this to my followers!
    Great blog and excellent design.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: