【问题标题】:google cloud tomcat stack mysql access谷歌云tomcat栈mysql访问
【发布时间】:2015-09-26 03:34:30
【问题描述】:

我在谷歌云上创建了一个 tomcat 堆栈实例,它带有 mysql 5.5。我可以通过ssh通过终端访问它,然后输入命令行mysql -u username -p。但是,我正在尝试通过 mysqlworkbench 访问数据库,但无法获得连接。

所以,我想我需要使用“标准 TCP/IP over SSH”连接方法,我需要确认我的参数是否正确。

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

【问题讨论】:

    标签: mysql-workbench google-cloud-sql google-cloud-platform


    【解决方案1】:

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

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

    【讨论】:

      猜你喜欢
      • 2018-10-25
      • 2023-04-06
      • 2019-08-24
      • 2018-03-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2016-10-31
      • 1970-01-01
      相关资源
      最近更新 更多