|
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]
|