Re: Using PHP to import a DB

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 2005-11-06, Todd Cary <todd@xxxxxxxxxxxxxxxxxx> 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


[Index of Archives]     [PHP Home]     [PHP Users]     [Postgresql Discussion]     [Kernel Newbies]     [Postgresql]     [Yosemite News]

  Powered by Linux