远程服务器与mysql连接

发布于 2024-09-12 15:10:34 字数 419 浏览 0 评论 0原文

我已经设置并运行了 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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

眼趣 2024-09-19 15:10:34
mysql -h comm.eng.bxg.com -u username -p

之后它会要求输入密码。

您也可以选择直接指定所需的数据库名称:

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

但同样,这是 100% 可选的。您可以使用命令 USE db_name 选择或更改它。

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.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文