MySQL Forums
Forum List  »  Newbie

Connecting to mysql from command line...a query
Posted by: nirav shah
Date: March 11, 2007 06:45AM

Hello,

I have mysql installed, and I can connect to it from command line, if I give this command:

>mysql -u root -p
Enter password: ****

mysql>
(done successfully)

But I want to connect directly, without being prompted for the password....like

>mysql -u root -p <password>

but still there is a prompt for password...can we not supply the password in the same line?

With thanks,
Nirav

Options: ReplyQuote


Subject
Written By
Posted
Connecting to mysql from command line...a query
March 11, 2007 06:45AM


Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.