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? Link to comment https://forums.phpfreaks.com/topic/33873-mysqldump-not-working/ 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. Link to comment https://forums.phpfreaks.com/topic/33873-mysqldump-not-working/#findComment-159553 Share on other sites More sharing options...
lucasl Posted January 13, 2007 Author Share Posted January 13, 2007 What do you mean? Link to comment https://forums.phpfreaks.com/topic/33873-mysqldump-not-working/#findComment-159846 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? Link to comment https://forums.phpfreaks.com/topic/33873-mysqldump-not-working/#findComment-159863 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.