Hannibal Smith
08-11-2005, 14:26
Seas PRO-grammierer!
Ich hab wieder mal ein kleines Problem, und zwar bekomm ich den Mysqldump befehl ned so richtig hin. datei erstellen geht aber er schreibt nyx rein.
<?php
ob_start();
$username = "root";
$hostname = "localhost";
$sConnString = mysql_connect($hostname, $username)//, $password)
or die("Unable to connect to MySQL");
$connection = mysql_select_db("SML",$sConnString)
or die("Could not select DB");
$command = "mysqldump --add-drop-table --host=localhost --user='root' SML";
system($command);
$dump = ob_get_contents();
ob_end_clean();
// echo $dump;
$fp = fopen("dump.sql", "w");
fputs($fp, $dump);
fclose($fp);
?>
Bitte helft mir, es is Sau drawig :rolleyes:
Edit: wenn wer einen andere Möglichkeit weis das des geht bitte auch sagen :rolleyes:
MFG Joe
Ich hab wieder mal ein kleines Problem, und zwar bekomm ich den Mysqldump befehl ned so richtig hin. datei erstellen geht aber er schreibt nyx rein.
<?php
ob_start();
$username = "root";
$hostname = "localhost";
$sConnString = mysql_connect($hostname, $username)//, $password)
or die("Unable to connect to MySQL");
$connection = mysql_select_db("SML",$sConnString)
or die("Could not select DB");
$command = "mysqldump --add-drop-table --host=localhost --user='root' SML";
system($command);
$dump = ob_get_contents();
ob_end_clean();
// echo $dump;
$fp = fopen("dump.sql", "w");
fputs($fp, $dump);
fclose($fp);
?>
Bitte helft mir, es is Sau drawig :rolleyes:
Edit: wenn wer einen andere Möglichkeit weis das des geht bitte auch sagen :rolleyes:
MFG Joe