[FUG-BR] MySQL e skip-grant-tables

Welkson Renny de Medeiros welkson em focusautomacao.com.br
Sexta Agosto 11 14:24:12 BRT 2006


Oi Fugs,


Tenho um FreeBSD 6.1 STABLE, e instalei o MySQL Server 5 pelo ports 
(/usr/ports/database/mysql50-server) para usar com o Snort e Base.

Primeiro foi aquela chateação de "Host 'tal' is not allowed to connect to 
this MySQL Server"... achei o parâmetro skip-grant-tables que "teoricamente" 
resolveu, pois consegui acessar o banco pelo administrador, criei as 
tabelas, usei snort+base, etc... mas depois de algumas horas ele começa a 
negar novamente o acesso a todos os hosts (inclusive localhost).

Pesquisei na internet, e vi alguns comentários sobre o GRANT ALL, mas acho 
meio sem lógica, se eu tiver 100 máquinas vou ter que liberar o GRANT um a 
um para cada máquina? e já que mandei pular essa checagem 
(skip-grant-tables) porque que ele continua insistindo?

Meu rc.local
/usr/local/bin/mysqld_safe -user=mysql --skip-grant-tables &

[root em netserver:/etc/firewall] # ps axw | grep mysql
 1565  p0- IW     0:00.00 /bin/sh 
/usr/local/bin/mysqld_safe -user=mysql --skip-grant-tables
 1586  p0- S      0:41.31 
/usr/local/libexec/mysqld --basedir=/usr/local --datadir=/var/db/mysql --user=mysql 
 --pid-file=/var/db/my

[root em netserver:/etc/firewall] # netstat -anb | grep 3306 | grep LISTEN
tcp4       0      0  *.3306                 *.*                    LISTEN

Algumas informações do netserver.err (/var/db/mysql/netserver.err)
060810 18:01:30  mysqld started
060810 18:01:33  InnoDB: Started; log sequence number 0 43665
060810 18:01:33 [Note] /usr/local/libexec/mysqld: ready for connections.
Version: '5.0.22'  socket: '/tmp/mysql.sock'  port: 3306  FreeBSD port: 
mysql-se
rver-5.0.22
060810 18:57:31  mysqld started
060810 18:57:31 [Warning] Ignoring user change to 'ser=mysql' because the 
user w
as set to 'mysql' earlier on the command line

060810 18:57:31  InnoDB: Started; log sequence number 0 43665
060810 18:57:32 [Note] /usr/local/libexec/mysqld: ready for connections.
Version: '5.0.22'  socket: '/tmp/mysql.sock'  port: 3306  FreeBSD port: 
mysql-se
rver-5.0.22

Alguma sugestão? como falei, funciona durante algumas horas, depois começa a 
negar conexão ("Host 'tal' is not allowed to connect to this MySQL Server").

Ele grava log de erros em algum outro lugar?

Abraço e bom fim de semana.


-- 
Welkson Renny de Medeiros
Focus Automação Comercial
Desenvolvimento / Gerência de Redes
welkson em focusautomacao.com.br 



Mais detalhes sobre a lista de discussão freebsd