简体   繁体   English

错误2003(HY000):无法连接到“…”上的MySQL服务器(65)

[英]ERROR 2003 (HY000): Can't connect to MySQL server on '…' (65)

This is the first time I am setting up a remote connection and I am doing this. 这是我第一次设置远程连接,而我正在这样做。

mysql -u user -password -h dbserver.dev.5bfed886-8150-4a8d-b0d5-4c7cffb5c54c.drush.in -P 11831 dbname

I get this error back. 我收到此错误。

ERROR 2003 (HY000): Can't connect to MySQL server on 'dbserver.$ENV.$SITE.drush.in' (65)

I have scoured the web I am not able to find a solution, I would appreciate any help. 我已经在网上搜寻到了无法找到解决方案的信息,希望对您有所帮助。 I apologize beforehand if any information is missing (I am a first timer). 如果有任何信息遗失,我谨此致歉(我是第一次来访)。

Try this: 尝试这个:

mysql -uuser -p -hdbserver.dev.5bfed886-8150-4a8d-b0d5-4c7cffb5c54c.drush.in -P11831

mysql ask you for password after running mysql运行后要求您输入密码

If you're trying to connect to Pantheon (which it looks like you are), you might just need to wake up your instance. 如果您尝试连接到Pantheon(看起来像您),则可能只需要唤醒实例即可。 I did that with terminus drush --site=[site_name] --env=[environment_name] st where [site_name] is replaced with the machine name of your site and [environment_name] is replaced with the machine name of the environment you wish to awaken. 我用terminus drush --site=[site_name] --env=[environment_name] st ,其中[site_name]被替换为您站点的计算机名称,[environment_name]被替换为您想要的环境的计算机名称唤醒。

As the last commenter mentioned, you need to "wake" up the site. 正如最后一个评论者所提到的,您需要“唤醒”网站。 However, this can be accomplished just by reloading the homepage. 但是,仅通过重新加载主页即可完成此操作。

https://pantheon.io/docs/debug-connections/ https://pantheon.io/docs/debug-connections/

Services such as MySQL and SFTP are running; MySQL和SFTP等服务正在运行; however, the local client is unable to connect due to an idled container or DNS issues. 但是,由于容器闲置或DNS问题,本地客户端无法连接。 Before further troubleshooting, wake the environment by loading the home page... 在进行进一步的故障排除之前,请通过加载主页来唤醒环境...

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 SQLSTATE [HY000] [2003]无法连接到MySQL服务器 - SQLSTATE[HY000] [2003] Can't connect to MySQL server MySql错误ERROR 2003(HY000):无法连接到'localhost'上的MySQL服务器(10061) - MySql Error ERROR 2003 (HY000): Can't connect to MySQL server on 'localhost' (10061) MySQL Workbench导入/导出:错误2003(HY000):无法连接到“本地主机”上的MySQL服务器(110) - MySQL Workbench import/export: ERROR 2003 (HY000): Can't Connect to MySQL server on 'localhost' (110) 错误2003(HY000):无法连接到“本地主机”上的MySQL服务器(10061)-MYSQL命令行连接 - Error 2003 (HY000): Can't connect to MySQL server on 'localhost' (10061)— MYSQL Command line connectivity MySQL / AWS RDS:错误 2003 (HY000):无法连接到 MySQL 服务器 - MySQL / AWS RDS : ERROR 2003 (HY000): Can't connect to MySQL server Wamp mysql:ERROR 2003(HY000):无法连接到“ localhost”上的MySQL服务器(10061) - Wamp mysql : ERROR 2003 (HY000): Can't connect to MySQL server on 'localhost' (10061) 错误2003(HY000):无法连接到“本地主机”上的MySQL服务器(10061“未知错误”) - ERROR 2003 (HY000): Can't connect to MySQL server on 'localhost' (10061 “Unknown error”) 错误2003(HY000):无法连接到[IP]上的MySQL服务器(111“连接被拒绝”) - ERROR 2003 (HY000): Can't connect to MySQL server on [IP] (111 “Connection refused”) 无法连接到远程MySQL服务器错误2003(HY000) - Can't connect to remote MySQL server Error 2003 (HY000) 错误 2003 (HY000):无法连接到 MySQL 服务器 (111) - ERROR 2003 (HY000): Can't connect to MySQL server (111)
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM