title: Mac terminal ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/tmp/mysql.sock' (2)
body: <p>I am following this tutorial to setup a Wordpress website on Google cloud:
  <a href="https://googlecloudplatform.github.io/appengine-php-wordpress-starter-project/" rel="noreferrer">https://googlecloudplatform.github.io/appengine-php-wordpress-starter-project/</a></p>
  
  <ul>
  <li>I am working on a Mac with OSX 10.10.3. </li>
  <li>I have installed the PHP SDK for Google App Engine software.</li>
  </ul>
  
  <p>Now I am trying to install MySQL server on my mac. I have downloaded the Mac OS X 10.9 (x86, 64-bit), Compressed TAR Archive here: <a href="http://dev.mysql.com/downloads/mysql/" rel="noreferrer">http://dev.mysql.com/downloads/mysql/</a></p>
  
  <p>As the tutorial says, I am command the following line in my Terminal:</p>
  
  <pre><code>/Users/myuser/Downloads/mysql-5.6.24-osx10.9-x86_64/bin/mysql/mysql -u root -p mypassword
  </code></pre>
  
  <p>First the terminal asked for my password, and when I enter this the following error occurs:</p>
  
  <p><strong>ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/tmp/mysql.sock' (2)</strong></p>