title: Wordpress cannot connect to mysql server
body: <p>I have run a mysql server in my macbook, where I can access via both mysql command <code>mysql -u root</code> and navicat application. However, when I open the install page of a brand new wordpress app in my macbook. During the installation, I had got：</p>
  
  <p><img src="https://i.stack.imgur.com/eiIJ5.png" alt="Image of MySQL error"></p>