title: MySQL working with 127.0.0.1 but not working with localhost?
body: <p>I have a strange problem in php MySQL:</p>
  
  <p>php connects with <code>127.0.0.1</code> but not with <code>localhost</code>.</p>
  
  <p>How to solve this issue?</p>