No Ubutu 16.04, a localização do arquivo de configuração que você está procurando é /etc/mysql/mysql.conf.d/mysqld.cnf
Não consigo acessar o servidor MySQL no meu Ubuntu 16.04.02 VPS do Azure. Eu tentei editar o /etc/mysql/my.cnf mas nada - não há nada como ligar 127.0.0.1. Eu criei usuário com curinga, mas ainda estou recebendo conexão recusada. O que posso fazer?
my.cnf
#
# The MySQL database server configuration file.
#
# You can copy this to one of:
# - "/etc/mysql/my.cnf" to set global options,
# - "~/.my.cnf" to set user-specific options.
#
# One can use all long options that the program supports.
# Run program with --help to get a list of available options and with
# --print-defaults to see which it would actually understand and use.
#
# For explanations see
# http://dev.mysql.com/doc/mysql/en/server-system-variables.html
#
# * IMPORTANT: Additional settings that can override those from this file!
# The files must end with '.cnf', otherwise they'll be ignored.
#
!includedir /etc/mysql/conf.d/
!includedir /etc/mysql/mysql.conf.d/
Saída do terminal:
azure@pinf-vps:~$ sudo lsof -Pni :3306
COMMAND PID USER FD TYPE DEVICE SIZE/OFF NODE NAME
mysqld 29117 mysql 15u IPv4 2516519 0t0 TCP 127.0.0.1:3306 (LISTEN)
Eu também verifiquei se a porta está aberta no VPS e no firewall.
Obrigado pela ajuda.
No Ubutu 16.04, a localização do arquivo de configuração que você está procurando é /etc/mysql/mysql.conf.d/mysqld.cnf