Postfix and MySQL on Debian Etch

Discussion in 'HOWTO-Related Questions' started by webbies, Oct 17, 2007.

  1. webbies

    webbies New Member

    Hi,

    I have a problem with postfix and mysql. Postfix is not able to connect to mysql. The error is

    postfix/cleanup[9788]: warning: connect to mysql server localhost: Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock'

    but mysqld.sock exists

    srwxrwxrwx 1 mysql mysql 0 Oct 17 10:20 /var/run/mysqld/mysqld.sock

    and when I try to connect like

    mysql -u mail_admin -p -S /var/run/mysqld/mysqld.sock

    everything works.

    what could be the problem?

    greetings

    webbies
     
  2. falko

    falko Super Moderator Howtoforge Staff

Share This Page