Reply to mysql dump creates empty file

Your name:

Reply:


Posted by vesakilp on 09/10/06 12:15

I've got this problem: I'm trying to backup a table from my database to
a .sql file. I'm running mysqldump command from php file, and the
result file is empty. Where's the problem?

Code:
<?php
include "settings.inc";
include "db.php";

global $dbase;
global $duser;
global $dpass;

DBConnect();

$backup = "mysqldump -h localhost -u $duser -p $dpass $dbase table_name
> backup/table_name.sql";
shell_exec($backup);

DBClose();
?>

[Back to original message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация