Re: Postfix se conectar em banco MySQL
Rafael,
No seu arquivo de mapeamento nao use hosts = localhost use
hosts=127.0.0.1
http://workaround.org/articles/ispmail-sarge/
Fernando Andrade.
Em Sex, 2005-09-09 às 18:45 -0300, Rafael Balbino escreveu:
> 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
Reply to: