segunda-feira, 5 de fevereiro de 2018

Tomcat e/ou MySQL não acessa remoto do Google Cloud Platform? / Tomcat and/or MySQL does not access Google Cloud Platform remote.

Depois do ambiente todo configurado e na hora de testar não consegue estabelecer conexão?

Neste caso pode ser a configuração do Firewall do console. 
  • Verifique se a porta correspondente ja foi adicionada à regra.
  • Verifique se no campo destino está selecionado "Aplicar a todas as instâncias".
In this case, it may be the Console Firewall setting.
  • Verify that the corresponding port has already been added to the rule.
  • Make sure that "Apply to all instances" is selected in the target field.

Acessando configuração do MySQL-SERVER (instalação padrão) no Ubuntu Server 16.04 / Accessing conf mysql server on Ubuntu Server 16.04

Bom estou compartilhando este post para aqueles que estão com dificuldades para acessar o arquivo de configuração do MySQL server da instalação padrão do Ubuntu server 16.04.

Para uma tarefa que sempre foi simples (habilitar o mysql para acesso remoto) apanhei muito para achar o arquivo default do mysql e comentar linhar "bind-address = 0.0.0.0".Isso porque essa instalação gera inúmeras pastas com locais diferentes que contem o arquivo de configuração do mysql.
Conseguir achar o arquivo default em /etc/mysql/mysqlconf.d/mysqld.cnf

Well, I'm sharing this post for those who are having trouble accessing the MySQL server configuration file from the default installation of Ubuntu server 16.04.

For a task that was simple (active mysql for remote access comment "bind-address = 0.0.0.0")
This is because this installation generates numerous folders with different locations that contain the mysql configuration file.

You can find the default file in /etc/mysql/mysqlconf.d/mysqld.cnf