Welcome Guest. Please Login or Register  


You are here: Index > AMPPS > General Support > Topic : Mysql Dump/backUP



Normal Mode | Print  

 Mysql Dump/backUP (21 Replies, Read 29072 times)
Nube
Group: Member
Post Group: Newbie
Posts: 29
Status:
Hi :-)

I need your help once again.. i try to backup my db using a php script but always get an error..

here the code i use:

PHP Code

<?php

include ("../../t6/include/connect.php");

$backupFile '../../t6/backup/' $db date("Y-m-d-H-i-s") . '.sql';
$command "mysqldump -h $host -u $user -p$password $db > $backupFile";
system($command$retval);
if (
$retval==0)
{
 echo 
"BackUP Done!";
}
else
{
 echo 
"BackUP Failed!";
}
?>



i always get "1" as value into $retval.. what's wrong with my code?

thanks for the help :)
IP: --   


Threads
 Nube   Mysql Dump/backUP (21 Replies, Read 29072 times)
    |--  tidus   Hi :-) I...   on January 24, 2012, 6:08 am
    |--  Nube   what i am...   on January 24, 2012, 12:38 pm
    |--  tidus   what i am...   on January 24, 2012, 12:45 pm
    |--  Nube   ok, so i...   on January 24, 2012, 1:10 pm
    |--  tidus   ok, so i...   on January 24, 2012, 1:35 pm
    |--  Nube   hi :) sorry...   on January 28, 2012, 6:22 pm
    |--  Nube   sorry for reposting...   on January 28, 2012, 6:25 pm
    |--  Nube   sorry for the...   on January 28, 2012, 6:41 pm
    |--  tidus   Hi, $file is...   on January 29, 2012, 3:08 pm
    |--  Nube   sorry but i...   on January 29, 2012, 3:46 pm
    |--  Nube    <?php include ("../../t6/include/connect.php");...   on January 29, 2012, 3:47 pm
    |--  tidus   Hi, I am...   on February 2, 2012, 5:54 am
    |--  Nube   Thanks for replying...   on February 2, 2012, 1:11 pm
    |--  tidus   Hi, I have...   on February 2, 2012, 1:42 pm
    |--  Nube   Hi :) thanks...   on February 2, 2012, 5:21 pm
    |--  tidus   Since you are...   on February 2, 2012, 6:40 pm
    |--  Nube   I still have...   on February 5, 2012, 4:45 pm
    |--  tidus   >> I still...   on February 6, 2012, 6:30 am
    |--  Nube   Hi :) finally...   on February 6, 2012, 9:06 pm
    |--  tidus   Good to know...   on February 7, 2012, 5:30 am
    |--  raghubodi   The mysqldump client...   on February 8, 2012, 9:32 am

« Previous    Next »

Normal Mode | Print  



Users viewing this topic
1 guests, 0 users.


All times are GMT. The time now is July 5, 2025, 2:23 pm.

  Powered By AEF 1.0.8 © 2007-2008 Electron Inc.Queries: 10  |  Page Created In:0.363