Re: [FUG-BR] Erro de Socket

2011-06-03 Por tôpico Luiz Otavio O Souza
On Jun 2, 2011, at 9:57 PM, irado furioso com tudo wrote:

 Em Thu, 02 Jun 2011 10:45:47 -0300
 Daniel daniel2...@r7.com, conhecido consumidor/usuário de drogas
 (Windows e BigMac com Coke) escreveu:
 
 ERROR 2002 (HY000): Can't connect to local MySQL server through
 socket '/tmp/mysql.sock' (38)
 
 aparentemente, não subiu.
 
 o /tmp precisa ter os atributos 0777 para o mysql subir

Opa Irado,

A permissão correta do /tmp é 01777 (chmod 01777 /tmp).

Att.,
Luiz
-
Histórico: http://www.fug.com.br/historico/html/freebsd/
Sair da lista: https://www.fug.com.br/mailman/listinfo/freebsd


Re: [FUG-BR] Erro de Socket

2011-06-02 Por tôpico Marcelo Gondim
Mas você não tem que criar o sock. Você precisa habilitar no 
/etc/rc.conf o mysql:

mysql_enable=YES

e depois iniciar ele:

/usr/local/etc/rc.d/mysql-server start

:)

Em 02/06/2011 10:45, Daniel escreveu:
 quando dou o comando :

 mysql -u root -p

 ERROR 2002 (HY000): Can't connect to local MySQL server through socket
 '/tmp/mysql.sock' (38)

 as soluções que encontrei  procurando no google é com o conhecimento que
 tinha,mais de nada adiantou pro meu caso.

 1ª Solução

 touch /tmp/mysql.sock
 chmod -R 777 /tmp
 chmod o-w /tmp/mysql.sock
 depois /usr/local/etc/rc.d/mysql-server start


 Ai o aquivo some quando dou o comando mysql -u root -p,tipo vira um ciclo.


 Alguem pode me ajudar??
 -
 Histórico: http://www.fug.com.br/historico/html/freebsd/
 Sair da lista: https://www.fug.com.br/mailman/listinfo/freebsd


-
Histórico: http://www.fug.com.br/historico/html/freebsd/
Sair da lista: https://www.fug.com.br/mailman/listinfo/freebsd


Re: [FUG-BR] Erro de Socket

2011-06-02 Por tôpico Daniel
Em 02/06/2011 11:13, Marcelo Gondim escreveu:
 Mas você não tem que criar o sock. Você precisa habilitar no
 /etc/rc.conf o mysql:

 mysql_enable=YES

 e depois iniciar ele:

 /usr/local/etc/rc.d/mysql-server start

 :)

 Em 02/06/2011 10:45, Daniel escreveu:
 quando dou o comando :

 mysql -u root -p

 ERROR 2002 (HY000): Can't connect to local MySQL server through socket
 '/tmp/mysql.sock' (38)

 as soluções que encontrei  procurando no google é com o conhecimento que
 tinha,mais de nada adiantou pro meu caso.

 1ª Solução

 touch /tmp/mysql.sock
 chmod -R 777 /tmp
 chmod o-w /tmp/mysql.sock
 depois /usr/local/etc/rc.d/mysql-server start


 Ai o aquivo some quando dou o comando mysql -u root -p,tipo vira um ciclo.


 Alguem pode me ajudar??
 -
 Histórico: http://www.fug.com.br/historico/html/freebsd/
 Sair da lista: https://www.fug.com.br/mailman/listinfo/freebsd

 -
 Histórico: http://www.fug.com.br/historico/html/freebsd/
 Sair da lista: https://www.fug.com.br/mailman/listinfo/freebsd
Marcelo, eu fiz isso já,foi a primeira coisa ,mais não aparece o 
mysql.sock , é quando eu crio ele na mão,e starto o mysql ele 
simplesmente some.
-
Histórico: http://www.fug.com.br/historico/html/freebsd/
Sair da lista: https://www.fug.com.br/mailman/listinfo/freebsd


Re: [FUG-BR] Erro de Socket

2011-06-02 Por tôpico Tiago Ribeiro

 Em 02/06/2011 11:13, Marcelo Gondim escreveu:

 Mas você não tem que criar o sock. Você precisa habilitar no
 /etc/rc.conf o mysql:

 mysql_enable=YES

 e depois iniciar ele:

 /usr/local/etc/rc.d/mysql-server start

 :)

 Em 02/06/2011 10:45, Daniel escreveu:

  

com o mysql rodando , da um find / -name mysql.sock , ele pode estar sendo
criado em outro diretorio.
-
Histórico: http://www.fug.com.br/historico/html/freebsd/
Sair da lista: https://www.fug.com.br/mailman/listinfo/freebsd


Re: [FUG-BR] Erro de Socket

2011-06-02 Por tôpico Welkson Renny de Medeiros
Tiago Ribeiro escreveu:
 Em 02/06/2011 11:13, Marcelo Gondim escreveu:

 
 Mas você não tem que criar o sock. Você precisa habilitar no
 /etc/rc.conf o mysql:

 mysql_enable=YES

 e depois iniciar ele:

 /usr/local/etc/rc.d/mysql-server start

 :)

 Em 02/06/2011 10:45, Daniel escreveu:

  
   

 com o mysql rodando , da um find / -name mysql.sock , ele pode estar sendo
 criado em outro diretorio.
   

É só conferir no /var/db/mysql/my.cnf

[client]
port= 3306
socket  = /tmp/mysql.sock


-- 
Welkson Renny de Medeiros
Desenvolvimento / Gerência de Redes
Focus Automação Comercial
FreeBSD Community Member 


-
Histórico: http://www.fug.com.br/historico/html/freebsd/
Sair da lista: https://www.fug.com.br/mailman/listinfo/freebsd


Re: [FUG-BR] Erro de Socket

2011-06-02 Por tôpico Alessandro de Souza Rocha
temta assim
touch /tmp/mysql.sock
chmod -R 777 /tmp
chmod o-w /tmp/mysql.sock
depois /usr/local/etc/rc.d/mysql-server start


Em 2 de junho de 2011 11:49, Welkson Renny de Medeiros
welk...@focusautomacao.com.br escreveu:
 Tiago Ribeiro escreveu:
 Em 02/06/2011 11:13, Marcelo Gondim escreveu:


 Mas você não tem que criar o sock. Você precisa habilitar no
 /etc/rc.conf o mysql:

 mysql_enable=YES

 e depois iniciar ele:

 /usr/local/etc/rc.d/mysql-server start

 :)

 Em 02/06/2011 10:45, Daniel escreveu:




 com o mysql rodando , da um find / -name mysql.sock , ele pode estar sendo
 criado em outro diretorio.


 É só conferir no /var/db/mysql/my.cnf

 [client]
 port            = 3306
 socket          = /tmp/mysql.sock


 --
 Welkson Renny de Medeiros
 Desenvolvimento / Gerência de Redes
 Focus Automação Comercial
 FreeBSD Community Member


 -
 Histórico: http://www.fug.com.br/historico/html/freebsd/
 Sair da lista: https://www.fug.com.br/mailman/listinfo/freebsd




-- 
Alessandro de Souza Rocha
Administrador de Redes e Sistemas
FreeBSD-BR User #117
             Long live FreeBSD

                     Powered by 

                                          (__)
                                       \\\'',)
                                         \/  \ ^
                                         .\._/_)

                                     www.FreeBSD.org
-
Histórico: http://www.fug.com.br/historico/html/freebsd/
Sair da lista: https://www.fug.com.br/mailman/listinfo/freebsd


Re: [FUG-BR] Erro de Socket

2011-06-02 Por tôpico Daniel
Em 02/06/2011 11:49, Welkson Renny de Medeiros escreveu:
 Tiago Ribeiro escreveu:
 Em 02/06/2011 11:13, Marcelo Gondim escreveu:


 Mas você não tem que criar o sock. Você precisa habilitar no
 /etc/rc.conf o mysql:

 mysql_enable=YES

 e depois iniciar ele:

 /usr/local/etc/rc.d/mysql-server start

 :)

 Em 02/06/2011 10:45, Daniel escreveu:



 com o mysql rodando , da um find / -name mysql.sock , ele pode estar sendo
 criado em outro diretorio.

 É só conferir no /var/db/mysql/my.cnf

 [client]
 port= 3306
 socket  = /tmp/mysql.sock


Tiago,
Dei um FIND não achou o arquivo.

Welkson,
o MY.CNF o socket esta no /tmp/mysql.sock
-
Histórico: http://www.fug.com.br/historico/html/freebsd/
Sair da lista: https://www.fug.com.br/mailman/listinfo/freebsd


Re: [FUG-BR] Erro de Socket

2011-06-02 Por tôpico Daniel
Em 02/06/2011 13:57, Alessandro de Souza Rocha escreveu:
 temta assim
 touch /tmp/mysql.sock
 chmod -R 777 /tmp
 chmod o-w /tmp/mysql.sock
 depois /usr/local/etc/rc.d/mysql-server start


 Em 2 de junho de 2011 11:49, Welkson Renny de Medeiros
 welk...@focusautomacao.com.br  escreveu:
 Tiago Ribeiro escreveu:
 Em 02/06/2011 11:13, Marcelo Gondim escreveu:


 Mas você não tem que criar o sock. Você precisa habilitar no
 /etc/rc.conf o mysql:

 mysql_enable=YES

 e depois iniciar ele:

 /usr/local/etc/rc.d/mysql-server start

 :)

 Em 02/06/2011 10:45, Daniel escreveu:



 com o mysql rodando , da um find / -name mysql.sock , ele pode estar sendo
 criado em outro diretorio.

 É só conferir no /var/db/mysql/my.cnf

 [client]
 port= 3306
 socket  = /tmp/mysql.sock


 --
 Welkson Renny de Medeiros
 Desenvolvimento / Gerência de Redes
 Focus Automação Comercial
 FreeBSD Community Member


 -
 Histórico: http://www.fug.com.br/historico/html/freebsd/
 Sair da lista: https://www.fug.com.br/mailman/listinfo/freebsd



Alessando,
no inicio do post,eu já tinha falado que tentei desse jeito é não funcionou.


-
Histórico: http://www.fug.com.br/historico/html/freebsd/
Sair da lista: https://www.fug.com.br/mailman/listinfo/freebsd


Re: [FUG-BR] Erro de Socket

2011-06-02 Por tôpico Silva, Thiago Alexandre Vitorino Da
Olá Daniel,

Tem certeza que o serviço do MySQL está up mesmo?
Monitore os procs e veja se depois de startar o serviço ele continua rodando.
Procure por erros também nos arquivos *.err que ficam no diretório da base do 
MySQL (se vc nao alterou, deve estar em /var/db/mysql).

Regards / Atenciosamente,
---
Thiago Vitorino
IT Analyst
Brasmar - An APM Terminals Company
Itajaí, Brazil
Office +55-47 2103 5602
thiago.vitor...@brasmarcis.com

Lifting Global Trade
www.brasmar.com.br
www.apmterminals.com


-Original Message-
From: freebsd-boun...@fug.com.br [mailto:freebsd-boun...@fug.com.br] On Behalf 
Of Daniel
Sent: quinta-feira, 2 de junho de 2011 14:30
To: Lista Brasileira de Discussão sobre FreeBSD (FUG-BR)
Subject: Re: [FUG-BR] Erro de Socket

Em 02/06/2011 13:57, Alessandro de Souza Rocha escreveu:
 temta assim
 touch /tmp/mysql.sock
 chmod -R 777 /tmp
 chmod o-w /tmp/mysql.sock
 depois /usr/local/etc/rc.d/mysql-server start


 Em 2 de junho de 2011 11:49, Welkson Renny de Medeiros
 welk...@focusautomacao.com.br  escreveu:
 Tiago Ribeiro escreveu:
 Em 02/06/2011 11:13, Marcelo Gondim escreveu:


 Mas você não tem que criar o sock. Você precisa habilitar no
 /etc/rc.conf o mysql:

 mysql_enable=YES

 e depois iniciar ele:

 /usr/local/etc/rc.d/mysql-server start

 :)

 Em 02/06/2011 10:45, Daniel escreveu:



 com o mysql rodando , da um find / -name mysql.sock , ele pode estar sendo
 criado em outro diretorio.

 É só conferir no /var/db/mysql/my.cnf

 [client]
 port= 3306
 socket  = /tmp/mysql.sock


 --
 Welkson Renny de Medeiros
 Desenvolvimento / Gerência de Redes
 Focus Automação Comercial
 FreeBSD Community Member


 -
 Histórico: http://www.fug.com.br/historico/html/freebsd/
 Sair da lista: https://www.fug.com.br/mailman/listinfo/freebsd



Alessando,
no inicio do post,eu já tinha falado que tentei desse jeito é não funcionou.


-
Histórico: http://www.fug.com.br/historico/html/freebsd/
Sair da lista: https://www.fug.com.br/mailman/listinfo/freebsd

The information contained in this message is privileged and intended only for 
the recipients named. If the reader is not a representative of the intended 
recipient, any review, dissemination or copying of this message or the 
information it contains is prohibited. If you have received this message in 
error, please immediately notify the sender, and delete the original message 
and attachments.

Please consider the environment before printing this email.

-
Histórico: http://www.fug.com.br/historico/html/freebsd/
Sair da lista: https://www.fug.com.br/mailman/listinfo/freebsd


Re: [FUG-BR] Erro de Socket

2011-06-02 Por tôpico Daniel
Em 02/06/2011 14:40, Silva, Thiago Alexandre Vitorino Da escreveu:
 Olá Daniel,

 Tem certeza que o serviço do MySQL está up mesmo?
 Monitore os procs e veja se depois de startar o serviço ele continua rodando.
 Procure por erros também nos arquivos *.err que ficam no diretório da base do 
 MySQL (se vc nao alterou, deve estar em /var/db/mysql).

 Regards / Atenciosamente,
 ---
 Thiago Vitorino
 IT Analyst
 Brasmar - An APM Terminals Company
 Itajaí, Brazil
 Office +55-47 2103 5602
 thiago.vitor...@brasmarcis.com

 Lifting Global Trade
 www.brasmar.com.br
 www.apmterminals.com


 -Original Message-
 From: freebsd-boun...@fug.com.br [mailto:freebsd-boun...@fug.com.br] On 
 Behalf Of Daniel
 Sent: quinta-feira, 2 de junho de 2011 14:30
 To: Lista Brasileira de Discussão sobre FreeBSD (FUG-BR)
 Subject: Re: [FUG-BR] Erro de Socket

 Em 02/06/2011 13:57, Alessandro de Souza Rocha escreveu:
 temta assim
 touch /tmp/mysql.sock
 chmod -R 777 /tmp
 chmod o-w /tmp/mysql.sock
 depois /usr/local/etc/rc.d/mysql-server start


 Em 2 de junho de 2011 11:49, Welkson Renny de Medeiros
 welk...@focusautomacao.com.br   escreveu:
 Tiago Ribeiro escreveu:
 Em 02/06/2011 11:13, Marcelo Gondim escreveu:


 Mas você não tem que criar o sock. Você precisa habilitar no
 /etc/rc.conf o mysql:

 mysql_enable=YES

 e depois iniciar ele:

 /usr/local/etc/rc.d/mysql-server start

 :)

 Em 02/06/2011 10:45, Daniel escreveu:



 com o mysql rodando , da um find / -name mysql.sock , ele pode estar sendo
 criado em outro diretorio.

 É só conferir no /var/db/mysql/my.cnf

 [client]
 port= 3306
 socket  = /tmp/mysql.sock


 --
 Welkson Renny de Medeiros
 Desenvolvimento / Gerência de Redes
 Focus Automação Comercial
 FreeBSD Community Member


 -
 Histórico: http://www.fug.com.br/historico/html/freebsd/
 Sair da lista: https://www.fug.com.br/mailman/listinfo/freebsd


 Alessando,
 no inicio do post,eu já tinha falado que tentei desse jeito é não funcionou.


 -
 Histórico: http://www.fug.com.br/historico/html/freebsd/
 Sair da lista: https://www.fug.com.br/mailman/listinfo/freebsd

 The information contained in this message is privileged and intended only for 
 the recipients named. If the reader is not a representative of the intended 
 recipient, any review, dissemination or copying of this message or the 
 information it contains is prohibited. If you have received this message in 
 error, please immediately notify the sender, and delete the original message 
 and attachments.

 Please consider the environment before printing this email.

 -
 Histórico: http://www.fug.com.br/historico/html/freebsd/
 Sair da lista: https://www.fug.com.br/mailman/listinfo/freebsd
Thiago,


Muito obrigado,tava aqui travado,é a coisa mais simples ver se o bendito 
mysql tinha startado.aff

olhei o log e vi que tinha erro com InnoDB no MYSQL,por isso não subia.

Aqui na lista achei a solução

RESOLVIDO.

-
Histórico: http://www.fug.com.br/historico/html/freebsd/
Sair da lista: https://www.fug.com.br/mailman/listinfo/freebsd


Re: [FUG-BR] Erro de Socket

2011-06-02 Por tôpico irado furioso com tudo
Em Thu, 02 Jun 2011 10:45:47 -0300
Daniel daniel2...@r7.com, conhecido consumidor/usuário de drogas
(Windows e BigMac com Coke) escreveu:

 ERROR 2002 (HY000): Can't connect to local MySQL server through
 socket '/tmp/mysql.sock' (38)

aparentemente, não subiu.

o /tmp precisa ter os atributos 0777 para o mysql subir

o /etc/rc.conf precisa ter uma inserção habilitando-o:

mysql_enable=YES


-- 
 saudações,
 irado furioso com tudo
 Linux User 179402/FreeBSD BSD50853/FUG-BR 154
 Não uso drogas - 100% Miko$hit-free
Salário Brasil
Você acha que tem jeito, mas o Governo não colabora.
-
Histórico: http://www.fug.com.br/historico/html/freebsd/
Sair da lista: https://www.fug.com.br/mailman/listinfo/freebsd