开发者

remote server connect with mysql

I have mysql 5.1 set up and running.

I need to connect to:

location: comm.eng.bxg.com

name: amntxy

user: username

pswd: password

I have tried using

mysql -h amntxy -u username -p

Also tried: use amntxy and use comm.eng.bxg.com/amntxy

But I am unable to connect.

I get the following error:

ERROR 2005 (HY000): Unknown MySQL server host

I also tried mysql_connect but keep getting the error : mysql_connec开发者_StackOverflowt is not recognized as internal or external command

But I do not understand hwo I can connect here.

Please help.

Thank you


mysql -h comm.eng.bxg.com -u username -p

After this it will ask for a password.

Optionally you can also directly specify the database name that you want:

mysql -h comm.eng.bxg.com -u username -p db_name

But again, this is 100% optional. You will be able to select or change it after with the command USE db_name.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜