You are here: Re: Database Dump with PHP « PHP Programming Language « IT news, forums, messages
Re: Database Dump with PHP

Posted by Noodle on 09/09/06 01:30

NC wrote:
> Noodle wrote:
> >
> > I want to dump out a database to the screen using
> > mysqldump, like so...
> >
> > <?php
> > echo system('mysqldump -h localhost -u user
> > -p password my_database');
> > ?>
> >
> > However, it won't accept my password being passed
> > in like this. Is this a mysql configuration problem?
>
> No, it's your not having read the MySQL Manual. When you enter
> password on the command line, there should not be any whitespace
> between -p and password:
>
> mysqldump -h localhost -u user -ppassword my_database
>
> Cheers,
> NC

Thanks NC, this has fixed the password problem.

 

Navigation:

[Reply to this 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

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