in reply to DBI / MySQL weird connection problems
What's the connection line you are using with PHP?
It could be that you're using the socket for Perl and a network connection with PHP.