远程服务器与mysql连接
我已经设置并运行了 mysql 5.1。
我需要连接到:
位置:comm.eng.bxg.com
名称:amntxy
用户:用户名
pswd:密码
我尝试过使用
mysql -h amntxy -u 用户名 -p
也尝试过:使用 amntxy 并使用 comm.eng.bxg。 com/amntxy
但我无法连接。
我收到以下错误:
ERROR 2005 (HY000): Unknown MySQL server host
我也尝试了 mysql_connect 但不断收到错误:mysql_connect 未被识别为内部或外部命令
但我不明白我可以在此处连接。
请帮忙。
谢谢
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_connect is not recognized as internal or external command
But I do not understand hwo I can connect here.
Please help.
Thank you
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
之后它会要求输入密码。
您也可以选择直接指定所需的数据库名称:
但同样,这是 100% 可选的。您可以使用命令
USE db_name
选择或更改它。After this it will ask for a password.
Optionally you can also directly specify the database name that you want:
But again, this is 100% optional. You will be able to select or change it after with the command
USE db_name
.