lucasl Posted January 12, 2007 Share Posted January 12, 2007 Hi![code]<?php$error = 0;$backupFile = 'freesearch' . date("Y-m-d") . '.sql';$command = "mysqldump --opt -h $dbhost -u $dbusername -p $dbpassword $dbname > $backupFile";system($command, $error);echo "$error";?>[/code]This script should work fine, and $error returns 1, but for some reason, I can't find the sql file. (I looked in the folder the script is in, public_html and the root)Any ideas? Quote Link to comment Share on other sites More sharing options...
fenway Posted January 12, 2007 Share Posted January 12, 2007 echo a `pwd` (or equivalent) and see where you are. Quote Link to comment Share on other sites More sharing options...
lucasl Posted January 13, 2007 Author Share Posted January 13, 2007 What do you mean? Quote Link to comment Share on other sites More sharing options...
Barand Posted January 13, 2007 Share Posted January 13, 2007 Have you looked in MySql's data folder? Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.