Hi, I should've checked if postfix is running chrooted and for that reason can't find the socket file since it's placed outside of the chroot tree. Well this was the case - postfix is running chrooted (which is nice btw).
To solve the problem without loosing security you could bind
mysqld to 127.0.0.1 - so append to the my.cnf file:
bind-address = 127.0.0.1
Next time you need to connect to mysql from a chrooted daemon
just connect to 127.0.0.1 and you're set :-)
Kind Regards,
Markus
