【发布时间】: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