Francis Michels
Francis Michels

Reputation: 527

Connect from shell to MySQL

I want to connect to my MySQL database from my shell.

But my database is hosted on another computer, so normally I could do:

mysql -h [hostadres] -u [username] -p [password]

But when I enter this, the promt asks me "Enter password:", I fill it in again, but then there's hapening nothing...

I give in exactly the same values as inside my php mysql_connect(...) code.

Please help...

Upvotes: 0

Views: 3017

Answers (1)

user254875486
user254875486

Reputation: 11240

I think the problem is the spaces between the flagnames and values, try this:

mysql -h[hostadres] -u[username] -p[password]

Upvotes: 2

Related Questions