首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >google cloud tomcat堆栈mysql访问

google cloud tomcat堆栈mysql访问
EN

Stack Overflow用户
提问于 2015-06-04 00:52:34
回答 1查看 387关注 0票数 0

我在google cloud上创建了一个tomcat堆栈实例,它附带了MySQL5.5。我可以通过终端通过ssh访问它,然后输入命令行mysql -u username -p。然而,我试图通过mysqlworkbench访问数据库,但我无法获得连接。

因此,我想我需要使用"Standard TCP/IP over SSH“连接方法,并且我需要确认我的参数是否正确。

代码语言:javascript
复制
SSH Hostname: the IP of my instances <br/>
SSH Username: my google account username? this is the one i use to login when setting up the gcloud ssh<br/>
SSH Password: the password for the account<br/>
SSH Key file: ~/.ssh/google_compute_engine<br/>
MySQL Hostname: i put tomcat_rmre which is the hostname for the database when I do "show variables" in the terminal<br/>
MySQL Server Port: the port in "Show variables"<br/>
Username: username of the database<br/>
password: password of the database

当我测试连接时,我得到Lost connection to MySQL server at 'reading initial communication packet', system error: 0

EN

回答 1

Stack Overflow用户

发布于 2015-09-26 03:34:30

Tomcat Click to Deploy解决方案不使用Cloud SQL,它只包含在Google Compute Engine上运行的MySQL。

如果您无法通过标准(TCP/IP)连接方式远程连接到MySQL实例,可能是由于以下原因之一:

票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/30626170

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档