My mysql server is installed on the localhost machine where my php scripts are stored. So is what they say right that it's safer to connect to mysql from php that is placed in the same server?
If so, how to configure mysql to be connected via sockets instead of localhost:3306? Thanks!