title: brew services start mysql vs mysql.server start
body: <p>What is the difference between those two below?</p>
  
  <pre><code>brew services start mysql
  
  mysql.server start
  </code></pre>
  
  <p>I am using homebrew mac os mysql(5.7.21).</p>
  
  <p>If I turn on the mysql server using a command</p>
  
  <pre><code>brew services start mysql
  </code></pre>
  
  <p>then check if that mysql server is on,</p>
  
  <pre><code>brew services list
  </code></pre>
  
  <p>The result is </p>
  
  <pre><code>mysql started
  </code></pre>
  
  <p>By the way, If I turn on the mysql server using a command</p>
  
  <pre><code>mysql.server start
  </code></pre>
  
  <p>then check if that mysql server is on,</p>
  
  <pre><code>brew services list
  </code></pre>
  
  <p>The result is </p>
  
  <pre><code>mysql stopped
  </code></pre>
  
  <p>Both of them successfully turn on the mysql server.</p>
  
  <p>I have checked it using a command </p>
  
  <pre><code>lsof -i:3306
  </code></pre>
  
  <p>But why is that brewlist status different?</p>
  
  <p>I only installed mysql via homebrew.</p>
  
  <pre><code>brew install mysql
  </code></pre>
  
  <p>so I guesssed that mysql.server start command also would be related to the homebrew mysql.</p>
  
  <p>Any advice would be appreciated.</p>