[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Postfix se conectar em banco MySQL



Rafael,

Também tive esse problema e sofri muito para descobrir que o postfix não se
conecta ao mysql por socket, coloca 127.0.0.1 nos arquivos de configuação que o
postfix usa para se conectar ao mysql que vai funcionar..

[]s

Dilceu

Citando Rafael Balbino <balbino@wxp.com.br>:

>     Pessoal,
>
>   Estou reconrendo a lista pois está complicado, não estou conseguindo fazer
> o meu MTA Postfix se conectar na base MySQL, no log do postfix aparece a
> seguinte mensagem:
>
>  " warning: connect to mysql server localhost: Can't connect to local MySQL
> server through socket '/var/run/mysqld/mysqld.sock' (2) "
>
>   Quando eu testo me conectar ao banco MySQL via Socks eu consigo:
>
>
> mysql -D postfix -u postfix -pxxxxxxxxx -S /var/run/mysqld/mysqld.sock
>
> Reading table information for completion of table and column names
> You can turn off this feature to get a quicker startup with -A
>
> Welcome to the MySQL monitor.  Commands end with ; or \g.
> Your MySQL connection id is 19 to server version: 4.1.11-Debian_4sarge1-log
>
> Type 'help;' or '\h' for help. Type '\c' to clear the buffer.
>
> mysql>
>
>     Alguem já passou por isso ?!?
>
>
> []'s Rafael Balbino




----------------------------------------------------------------
Essa mensagem foi enviada pelo webmail LinuxServers.



Reply to: