Re: Using PHP to import a DB
| From: | Tim Van Wassenhove | Date: | Sun, 06 Nov 2005 13:47:37 +0000 |
| Subject: | Re: Using PHP to import a DB | ||
| References: | 1 2 3 | Groups: | php.db |
| Request: | Send a blank email to php-db+get-40603@lists.php.net to get a copy of this message | ||
On 2005-11-06, Todd Cary <todd@aristesoftware.com> 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>