List:General Discussion« Previous MessageNext Message »
From:Martin Ramsch Date:September 23 1999 6:59pm
Subject:Re: handle the password problem!!
View as plain text  
On Thu, 1999-09-23 11:26:56 -0700, Nelson To wrote:
> is there any way to make password prompt gone?
> I mean when I type : mysql -u root -p
> Then the next line will be : Enter the password:
> Is it possible that we put the password at the begining like : mysql -u root 
> -p["password"] databaseName.

Don't write the square brackets!  In the manual they mean, that the
oart in brackets is optional ...

So please try:
  mysql -uroot -pyourpassword

No spaces after '-u' and '-p'!

If you prefer you also can use the more verbose variant of these options:
  mysql --user=root --password=youpassword 

See chapters "6.3 Connecting to the MySQL server" and
"12 MySQL Utilites" of the MySQL Refereence Manual.

Martin Ramsch <m.ramsch@stripped> <URL: >
PGP KeyID=0xE8EF4F75 FiPr=52 44 5E F3 B0 B1 38 26  E4 EC 80 58 7B 31 3A D7
handle the password problem!!Nelson To23 Sep
  • Re: handle the password problem!!Martin Ramsch23 Sep