Code Comments

Programming Forum and web based access to our favorite programming groups.
For Programmers: Free Programming Magazines | New: Database administration forum
Registration is free! Edit your profileCalendarFind other membersFrequently Asked QuestionsSearch -> 
Post New Thread











Thread
Author

Re: [PHP-DB] mysqldump
also ... I notice you have a space after the "-u" - should that be
there?  David.

On 10/11/2004, at 6:59 AM, Aaron Todd wrote:

> I have created a PHP script that looks like:
>
> <?php
>   $filename = "/var/www/html/db_backup_" . date("n-j-y").".sql";
>   exec('mysqldump -u ***** -p***** database > $filename');
> ?>
>
> For some reason this doesnt work and I cant figure out why.  There is
> no
> error that comes back.  When I run the mysqldump command from the
> server
> console it produces the file fine.  I have read a few other posts out
> there
> about this same thing which resulted in the location the file was being
> saved.  But I have gone through my server and found nothing.  Does
> anyone
> have any suggestions for regarding this.
>
> Thanks,
>
> Aaron
>
> --
> PHP Database Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>

Report this thread to moderator Post Follow-up to this message
Old Post
David Orlovich
11-09-04 08:55 PM


Re: [PHP-DB] mysqldump
As far as I know...yes.  Thats what I have seen on every post I have looked
at and also, thats the way it worked from the console.  It wouldnt work with
no space.

Thanks for your reply,

Aaron


"David Orlovich" <david.orlovich@botany.otago.ac.nz> wrote in message
news:59A992CA-327A-11D9-AC9A-003065CC6B30@botany.otago.ac.nz...
> also ... I notice you have a space after the "-u" - should that be there?
> David.
>
> On 10/11/2004, at 6:59 AM, Aaron Todd wrote:
> 

Report this thread to moderator Post Follow-up to this message
Old Post
Aaron Todd
11-09-04 08:55 PM


Re: [PHP-DB] mysqldump
Hi,

Look at this page and you will get all the answers

[url]http://www.glog.net/samplecode/backup-database[/url]

regards
vimal.v(deep781@yahoo.com)

David Orlovich wrote:

> also ... I notice you have a space after the "-u" - should that be
> there?  David.

> On 10/11/2004, at 6:59 AM, Aaron Todd wrote:
 

Report this thread to moderator Post Follow-up to this message
Old Post
Vimal
11-26-04 08:56 AM


Sponsored Links




Last Thread Next Thread Next
Search this forum -> 
Post New Thread

PHP DB archive

Show a Printable Version Send to friend Email This Page to Someone! subscribe to this thread Receive updates to this thread
Computer Consultants
Programming Jobs
Visual Basic Controls
SQL Server Programming
Webservices
Java Security
Visual Studio
C# Programming
Visual J++
Software engineering
Open source Software
Perl Programming
PHP Programming
ASP Programming
ASP .NET Programming
Visual Basic Programming
Windows Scripting Host
Java Programming
Java Help
Java Beans
VBScript
Cobol
MAC Applications
Unix Programming
Forum Jump:
All times are GMT. The time now is 05:44 AM.

 
Free MCSE Braindumps | Real Estate Topics

Programming forum archive

Copyrights CodeComments.com 2004 - 2006

Powered by vBulletin Copyright 2000-2006 Jelsoft Enterprises Limited.