|
Posted by NC on 09/08/06 15:09
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
Navigation:
[Reply to this message]
|