Hi Benny. Thanks for help. I modified below stuff.
1. In /etc/mysql/my.cnf , I had bind-address = 0.0.0.0 and changed it to 127.0.0.1 2. In postfix maps files, I did put socket = /var/run/mysqld/mysqld.sock Then I restarted postfix. Similar error, given below. 128250 Oct 20 01:50:50 Austin postfix/master[6610]: daemon started -- version 2.9.6, configuration /etc/postfix 128251 Oct 20 01:50:50 Austin postfix/pickup[6613]: 93D30C25A1: uid=0 from=<root> 128252 Oct 20 01:50:50 Austin postfix/cleanup[6615]: warning: connect to mysql server 127.0.0.1: Can't connect to MySQL server on '127.0.0.1' (111) In my,cnf, if I put bind address as 0.0.0.0 (I have a requirement to put it that way) , then it will bind to all available interfaces. So it should be fine. How do I know the exact reason. ...? Any pointers... Thanks Austin On Mon, Oct 20, 2014 at 10:08 AM, Benny Pedersen <m...@junc.eu> wrote: > On October 20, 2014 5:08:08 AM Austin Einter <austin.ein...@gmail.com> > wrote: > > I did chorrt modification , no luck.... >> >> Next I modified in maps config files , I changed the line >> hosts = localhost >> to >> hosts = 127.0.0.1 >> > > Check my.cnf, your mysql only binds to socket not inet pr default > > #skip-networking > bind-address = 127.0.0.1 > > Without the bind-address localhost is really socket file > > socket = /path/to/socketfile.sock > > Check this match postfix maps >