google cloud tomcat stack mysql access -
i created tomcat stack instance on google cloud , comes mysql 5.5. can access through terminal ssh enter command line mysql -u username -p. however, trying access database through mysqlworkbench not connection.
so, guess need use connection method "standard tcp/ip on ssh" , need confirm if have parameters right.
ssh hostname: ip of instances <br/> ssh username: google account username? 1 use login when setting gcloud ssh<br/> ssh password: password account<br/> ssh key file: ~/.ssh/google_compute_engine<br/> mysql hostname: put tomcat_rmre hostname database when "show variables" in terminal<br/> mysql server port: port in "show variables"<br/> username: username of database<br/> password: password of database when test connection, lost connection mysql server @ 'reading initial communication packet', system error: 0
the tomcat click deploy solution not use cloud sql, includes mysql running on google compute engine.
if not able connect mysql instance remotely via "standard (tcp/ip)" connection method because of 1 of:
you may have forgotten open tcp port 3306 in gce firewall.
mysql may not listening remote connections. my.cnf should contain
bind-address = 0.0.0.0, should not haveskip-networking.
Comments
Post a Comment