On 2005-11-06, Todd Cary <[EMAIL PROTECTED]> wrote:

>> system("mysql -u user -p db < /tmp/mydb");

> With the "-p" switch, the user is asked for the password.  How does that 
> happen with the system command?

Don't leave a space between -p and the password
mysql -u user -pyourpassword -h somehost db < /tmp/mydb

Met vriendelijke groeten,
Tim Van Wassenhove <http://timvw.madoka.be>

PHP Database Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to