title: Can start mysql Server on Preference pane but can't start that on terminal..on MAC
body: <p>i installed mysql by dmg and used for few days.
  i couldn't start server on Preference Pane and Terminal.
  thus i repeated install % uninstall few times.</p>
  
  <p>finally i could start server on preference pane but i can't start server on terminal.</p>
  
  <p>when attempted start server on terminal.
  i've got these errors.</p>
  
  <p>========================================================</p>
  
  <pre><code>LoganLeeui-MacBook-Pro:support-files Logan$ ./mysql.server start
  Starting MySQL
   ERROR! Couldn't find MySQL server (/usr/bin/mysqld_safe)
  
  LoganLeeui-MacBook-Pro:support-files Logan$ ./mysql.server stop
   ERROR! MySQL server PID file could not be found!
  
  LoganLeeui-MacBook-Pro:support-files Logan$ ./mysql.server restart
   ERROR! MySQL server PID file could not be found!
  Starting MySQL
   ERROR! Couldn't find MySQL server (/usr/bin/mysqld_safe)
  </code></pre>
  
  <p>========================================================</p>
  
  <p>i added code into /etc/my.cnf</p>
  
  <pre><code>[client]
  108 
  109 port = 3306
  110 socket = /tmp/mysql.sock
  111 
  112 
  113 [mysqld]
  114 
  115 port = 3306
  116 socket = /tmp/mysql.sock
  117 datadir = /usr/local/mysql-5.7.17-macos10.12-x86_64/data
  118 tmpdir = /tmp
  119 
  120 [client]
  121 default-character-set=utf8
  122 [mysql]
  123 default-character-set=utf8
  124 [mysqld]
  125 collation-server = utf8_unicode_ci
  126 init-connect='SET NAMES utf8'
  127 character-set-server = utf8
  </code></pre>
  
  <p>how can i fix?</p>
  
  <p>i don't want to face Unknown error anymore.</p>
  
  <p><img src="https://i.stack.imgur.com/3E2zp.png" alt="enter image description here"></p>