MySQL/PHP connection mysqld.sock

software development

#1

Kay i’ev done a lotta searching on google and this forum and still can’t get this problem resolved…

Error:
Can’t connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock (2)

I am using the host name for the db NOT 'localhost’
the host works fine when using SqlYug or http://mysql…com

the db connection code works fine on my local servers…

any thoughts?

Thanks