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...
I think the problem is the spaces between the flagnames and values, try this:
mysql -h[hostadres] -u[username] -p[password]
精彩评论