title: ERROR! The server quit without updating PID file (/usr/local/var/mysql/`username`.lan.pid)
body: <p>I cannot get rid of the error below. </p>
  
  <ol>
  <li>Installed homebrew via <code>/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"</code></li>
  <li><p><code>brew install mysql</code></p></li>
  <li><p><code>mysql.server start</code> gives the error: <code>ERROR! The server quit without updating PID file (/usr/local/var/mysql/</code>username<code>.lan.pid).</code></p></li>
  </ol>
  
  <p>Some things I have tried:</p>
  
  <p><code>ps -ef | grep mysql</code> outputs:</p>
  
  <p><code>501  1196  1172   0  9:08PM ttys000    0:00.00 grep mysql</code> </p>
  
  <p>which I then try to kill with <code>kill -9 1172</code>. This just says <code>Process Complete</code> but then a new process starts running. Not sure if this has anything to do with it. </p>
  
  <p>I have used <code>sudo chown -R mysql /usr/local/var/mysql/</code> to change ownership and tried running again with no luck. </p>
  
  <p>I have tried running this from the directory <code>Macintosh HD⁩ ▸ ⁨usr⁩ ▸ ⁨local⁩ ▸ ⁨mysql-8.0.14-macos10.14-x86_64</code> with no luck. </p>
  
  <p>I have tried deleting the error logs and re-running. </p>
  
  <p>I just updated my Mac to Mojave 10.14.3 no luck. </p>
  
  <p>I have tried uninstalling and reinstalling mysql. </p>
  
  <p>I have tried installing mysql via a download link instead of <code>brew install</code></p>
  
  <p>I tried doing <code>unset TMPDIR</code>, <code>mysql_install_db</code> but I get the response: <code>-bash: mysql_install_db: command not found</code>. I have tried running this from inside the mysql-VERSION folder. </p>
  
  <p>I am not sure what else to try. Help is appreciated. </p>
  
  <p><code>.err file</code>:</p>
  
  <pre><code>2019-01-24T19:46:47.6NZ mysqld_safe Logging to '/usr/local/var/mysql/ryans-macbook.lan.err'.
  2019-01-24T19:46:47.6NZ mysqld_safe Starting mysqld daemon with databases from /usr/local/var/mysql
  2019-01-24T19:46:47.525951Z 0 [System] [MY-010116] [Server] /usr/local/Cellar/mysql/8.0.13/bin/mysqld (mysqld 8.0.13) starting as process 78796
  2019-01-24T19:46:47.529750Z 0 [Warning] [MY-010159] [Server] Setting lower_case_table_names=2 because file system for /usr/local/var/mysql/ is case insensitive
  2019-01-24T19:46:47.535680Z 1 [ERROR] [MY-012271] [InnoDB] The innodb_system data file 'ibdata1' must be writable
  2019-01-24T19:46:47.535720Z 1 [ERROR] [MY-012278] [InnoDB] The innodb_system data file 'ibdata1' must be writable
  2019-01-24T19:46:47.535747Z 1 [ERROR] [MY-010334] [Server] Failed to initialize DD Storage Engine
  2019-01-24T19:46:47.535869Z 0 [ERROR] [MY-010020] [Server] Data Dictionary initialization failed.
  2019-01-24T19:46:47.535891Z 0 [ERROR] [MY-010119] [Server] Aborting
  2019-01-24T19:46:47.536598Z 0 [System] [MY-010910] [Server] /usr/local/Cellar/mysql/8.0.13/bin/mysqld: Shutdown complete (mysqld 8.0.13)  Homebrew.
  2019-01-24T19:46:47.6NZ mysqld_safe mysqld from pid file /usr/local/var/mysql/-macbook.lan.pid ended
  2019-01-24T19:47:05.6NZ mysqld_safe Logging to '/usr/local/var/mysql/-macbook.lan.err'.
  2019-01-24T19:47:05.6NZ mysqld_safe Starting mysqld daemon with databases from /usr/local/var/mysql
  2019-01-24T19:47:05.861015Z 0 [System] [MY-010116] [Server] /usr/local/Cellar/mysql/8.0.13/bin/mysqld (mysqld 8.0.13) starting as process 78949
  2019-01-24T19:47:05.864718Z 0 [Warning] [MY-010159] [Server] Setting lower_case_table_names=2 because file system for /usr/local/var/mysql/ is case insensitive
  2019-01-24T19:47:05.871046Z 1 [ERROR] [MY-012271] [InnoDB] The innodb_system data file 'ibdata1' must be writable
  2019-01-24T19:47:05.871084Z 1 [ERROR] [MY-012278] [InnoDB] The innodb_system data file 'ibdata1' must be writable
  2019-01-24T19:47:05.871110Z 1 [ERROR] [MY-010334] [Server] Failed to initialize DD Storage Engine
  2019-01-24T19:47:05.871264Z 0 [ERROR] [MY-010020] [Server] Data Dictionary initialization failed.
  2019-01-24T19:47:05.871290Z 0 [ERROR] [MY-010119] [Server] Aborting
  2019-01-24T19:47:05.871961Z 0 [System] [MY-010910] [Server] /usr/local/Cellar/mysql/8.0.13/bin/mysqld: Shutdown complete (mysqld 8.0.13)  Homebrew.
  2019-01-24T19:47:05.6NZ mysqld_safe mysqld from pid file /usr/local/var/mysql/-macbook.lan.pid ended
  2019-01-24T19:51:27.6NZ mysqld_safe Logging to '/usr/local/var/mysql/-macbook.lan.err'.
  2019-01-24T19:51:27.6NZ mysqld_safe Starting mysqld daemon with databases from /usr/local/var/mysql
  2019-01-24T19:51:27.979873Z 0 [System] [MY-010116] [Server] /usr/local/Cellar/mysql/8.0.13/bin/mysqld (mysqld 8.0.13) starting as process 81867
  2019-01-24T19:51:27.983686Z 0 [Warning] [MY-010159] [Server] Setting lower_case_table_names=2 because file system for /usr/local/var/mysql/ is case insensitive
  2019-01-24T19:51:27.998082Z 1 [ERROR] [MY-012271] [InnoDB] The innodb_system data file 'ibdata1' must be writable
  2019-01-24T19:51:27.998131Z 1 [ERROR] [MY-012278] [InnoDB] The innodb_system data file 'ibdata1' must be writable
  2019-01-24T19:51:27.998159Z 1 [ERROR] [MY-010334] [Server] Failed to initialize DD Storage Engine
  2019-01-24T19:51:27.998299Z 0 [ERROR] [MY-010020] [Server] Data Dictionary initialization failed.
  2019-01-24T19:51:27.998328Z 0 [ERROR] [MY-010119] [Server] Aborting
  2019-01-24T19:51:27.999095Z 0 [System] [MY-010910] [Server] /usr/local/Cellar/mysql/8.0.13/bin/mysqld: Shutdown complete (mysqld 8.0.13)  Homebrew.
  2019-01-24T19:51:28.6NZ mysqld_safe mysqld from pid file /usr/local/var/mysql/-macbook.lan.pid ended
  2019-01-24T19:52:04.6NZ mysqld_safe Logging to '/usr/local/var/mysql/-macbook.lan.err'.
  2019-01-24T19:52:04.6NZ mysqld_safe Starting mysqld daemon with databases from /usr/local/var/mysql
  2019-01-24T19:52:04.660514Z 0 [System] [MY-010116] [Server] /usr/local/Cellar/mysql/8.0.13/bin/mysqld (mysqld 8.0.13) starting as process 82584
  2019-01-24T19:52:04.664208Z 0 [Warning] [MY-010159] [Server] Setting lower_case_table_names=2 because file system for /usr/local/var/mysql/ is case insensitive
  2019-01-24T19:52:04.670173Z 1 [ERROR] [MY-012271] [InnoDB] The innodb_system data file 'ibdata1' must be writable
  2019-01-24T19:52:04.670215Z 1 [ERROR] [MY-012278] [InnoDB] The innodb_system data file 'ibdata1' must be writable
  2019-01-24T19:52:04.670239Z 1 [ERROR] [MY-010334] [Server] Failed to initialize DD Storage Engine
  2019-01-24T19:52:04.670387Z 0 [ERROR] [MY-010020] [Server] Data Dictionary initialization failed.
  2019-01-24T19:52:04.670416Z 0 [ERROR] [MY-010119] [Server] Aborting
  2019-01-24T19:52:04.671195Z 0 [System] [MY-010910] [Server] /usr/local/Cellar/mysql/8.0.13/bin/mysqld: Shutdown complete (mysqld 8.0.13)  Homebrew.
  2019-01-24T19:52:04.6NZ mysqld_safe mysqld from pid file /usr/local/var/mysql/-macbook.lan.pid ended
  2019-01-24T19:53:38.6NZ mysqld_safe Logging to '/usr/local/var/mysql/-macbook.lan.err'.
  2019-01-24T19:53:38.6NZ mysqld_safe Starting mysqld daemon with databases from /usr/local/var/mysql
  2019-01-24T19:53:38.430888Z 0 [System] [MY-010116] [Server] /usr/local/Cellar/mysql/8.0.13/bin/mysqld (mysqld 8.0.13) starting as process 82806
  2019-01-24T19:53:38.434733Z 0 [Warning] [MY-010159] [Server] Setting lower_case_table_names=2 because file system for /usr/local/var/mysql/ is case insensitive
  2019-01-24T19:53:38.905784Z 0 [Warning] [MY-000054] [Server] World-writable config file './auto.cnf' is ignored.
  2019-01-24T19:53:38.905899Z 0 [Warning] [MY-010107] [Server] World-writable config file './auto.cnf' has been removed.
  2019-01-24T19:53:38.905985Z 0 [Warning] [MY-010075] [Server] No existing UUID has been found, so we assume that this is the first time that this server has been started. Generating a new UUID: be330a06-2011-11e9-8f30-eeb7cad0b310.
  2019-01-24T19:53:38.921773Z 0 [Warning] [MY-010068] [Server] CA certificate ca.pem is self signed.
  2019-01-24T19:53:38.928389Z 0 [ERROR] [MY-010262] [Server] Can't start server: Bind on TCP/IP port: Address already in use
  2019-01-24T19:53:38.928416Z 0 [ERROR] [MY-010257] [Server] Do you already have another mysqld server running on port: 3306 ?
  2019-01-24T19:53:38.928458Z 0 [ERROR] [MY-010119] [Server] Aborting
  2019-01-24T19:53:40.656950Z 0 [System] [MY-010910] [Server] /usr/local/Cellar/mysql/8.0.13/bin/mysqld: Shutdown complete (mysqld 8.0.13)  Homebrew.
  2019-01-24T19:53:40.6NZ mysqld_safe mysqld from pid file /usr/local/var/mysql/-macbook.lan.pid ended
  2019-01-24T19:59:06.6NZ mysqld_safe Logging to '/usr/local/var/mysql/-macbook.lan.err'.
  2019-01-24T19:59:06.6NZ mysqld_safe Starting mysqld daemon with databases from /usr/local/var/mysql
  2019-01-24T19:59:07.597870Z 0 [System] [MY-010116] [Server] /usr/local/Cellar/mysql/8.0.13/bin/mysqld (mysqld 8.0.13) starting as process 679
  2019-01-24T19:59:07.682119Z 0 [Warning] [MY-010159] [Server] Setting lower_case_table_names=2 because file system for /usr/local/var/mysql/ is case insensitive
  2019-01-24T19:59:08.398625Z 0 [Warning] [MY-010068] [Server] CA certificate ca.pem is self signed.
  2019-01-24T19:59:08.410090Z 0 [ERROR] [MY-010262] [Server] Can't start server: Bind on TCP/IP port: Address already in use
  2019-01-24T19:59:08.410134Z 0 [ERROR] [MY-010257] [Server] Do you already have another mysqld server running on port: 3306 ?
  2019-01-24T19:59:08.410179Z 0 [ERROR] [MY-010119] [Server] Aborting
  2019-01-24T19:59:09.753682Z 0 [System] [MY-010910] [Server] /usr/local/Cellar/mysql/8.0.13/bin/mysqld: Shutdown complete (mysqld 8.0.13)  Homebrew.
  2019-01-24T19:59:09.6NZ mysqld_safe mysqld from pid file /usr/local/var/mysql/-macbook.lan.pid ended
  2019-01-29T03:49:55.6NZ mysqld_safe Logging to '/usr/local/var/mysql/-macbook.lan.err'.
  2019-01-29T03:49:56.6NZ mysqld_safe Starting mysqld daemon with databases from /usr/local/var/mysql
  2019-01-29T03:49:56.312175Z 0 [System] [MY-010116] [Server] /usr/local/Cellar/mysql/8.0.13/bin/mysqld (mysqld 8.0.13) starting as process 17447
  2019-01-29T03:49:56.315809Z 0 [Warning] [MY-010159] [Server] Setting lower_case_table_names=2 because file system for /usr/local/var/mysql/ is case insensitive
  2019-01-29T03:49:56.760978Z 0 [Warning] [MY-010068] [Server] CA certificate ca.pem is self signed.
  2019-01-29T03:49:56.768674Z 0 [ERROR] [MY-010262] [Server] Can't start server: Bind on TCP/IP port: Address already in use
  2019-01-29T03:49:56.768706Z 0 [ERROR] [MY-010257] [Server] Do you already have another mysqld server running on port: 3306 ?
  2019-01-29T03:49:56.768735Z 0 [ERROR] [MY-010119] [Server] Aborting
  2019-01-29T03:49:58.135724Z 0 [System] [MY-010910] [Server] /usr/local/Cellar/mysql/8.0.13/bin/mysqld: Shutdown complete (mysqld 8.0.13)  Homebrew.
  2019-01-29T03:49:58.6NZ mysqld_safe mysqld from pid file /usr/local/var/mysql/-macbook.lan.pid ended
  2019-01-29T04:35:11.6NZ mysqld_safe Logging to '/usr/local/var/mysql/-macbook.lan.err'.
  2019-01-29T04:35:11.6NZ mysqld_safe Starting mysqld daemon with databases from /usr/local/var/mysql
  2019-01-29T04:35:11.604233Z 0 [System] [MY-010116] [Server] /usr/local/Cellar/mysql/8.0.13/bin/mysqld (mysqld 8.0.13) starting as process 17821
  2019-01-29T04:35:11.607955Z 0 [Warning] [MY-010159] [Server] Setting lower_case_table_names=2 because file system for /usr/local/var/mysql/ is case insensitive
  2019-01-29T04:35:11.904189Z 0 [Warning] [MY-010068] [Server] CA certificate ca.pem is self signed.
  2019-01-29T04:35:11.910582Z 0 [ERROR] [MY-010262] [Server] Can't start server: Bind on TCP/IP port: Address already in use
  2019-01-29T04:35:11.910605Z 0 [ERROR] [MY-010257] [Server] Do you already have another mysqld server running on port: 3306 ?
  2019-01-29T04:35:11.910638Z 0 [ERROR] [MY-010119] [Server] Aborting
  2019-01-29T04:35:13.403138Z 0 [System] [MY-010910] [Server] /usr/local/Cellar/mysql/8.0.13/bin/mysqld: Shutdown complete (mysqld 8.0.13)  Homebrew.
  2019-01-29T04:35:13.6NZ mysqld_safe mysqld from pid file /usr/local/var/mysql/-macbook.lan.pid ended
  2019-01-29T04:38:23.6NZ mysqld_safe Logging to '/usr/local/var/mysql/-macbook.lan.err'.
  2019-01-29T04:38:23.6NZ mysqld_safe Starting mysqld daemon with databases from /usr/local/var/mysql
  2019-01-29T04:38:23.883516Z 0 [System] [MY-010116] [Server] /usr/local/Cellar/mysql/8.0.13/bin/mysqld (mysqld 8.0.13) starting as process 17989
  2019-01-29T04:38:23.887192Z 0 [Warning] [MY-010159] [Server] Setting lower_case_table_names=2 because file system for /usr/local/var/mysql/ is case insensitive
  mysqld: File './binlog.index' not found (OS errno 13 - Permission denied)
  2019-01-29T04:38:23.887568Z 0 [ERROR] [MY-010119] [Server] Aborting
  2019-01-29T04:38:23.887755Z 0 [System] [MY-010910] [Server] /usr/local/Cellar/mysql/8.0.13/bin/mysqld: Shutdown complete (mysqld 8.0.13)  Homebrew.
  2019-01-29T04:38:23.6NZ mysqld_safe mysqld from pid file /usr/local/var/mysql/-macbook.lan.pid ended
  2019-01-29T04:39:48.6NZ mysqld_safe Logging to '/usr/local/var/mysql/-macbook.lan.err'.
  2019-01-29T04:39:48.6NZ mysqld_safe Starting mysqld daemon with databases from /usr/local/var/mysql
  2019-01-29T04:39:49.266658Z 0 [System] [MY-010116] [Server] /usr/local/Cellar/mysql/8.0.13/bin/mysqld (mysqld 8.0.13) starting as process 18103
  2019-01-29T04:39:49.270279Z 0 [Warning] [MY-010159] [Server] Setting lower_case_table_names=2 because file system for /usr/local/var/mysql/ is case insensitive
  2019-01-29T04:39:49.587646Z 0 [Warning] [MY-010068] [Server] CA certificate ca.pem is self signed.
  2019-01-29T04:39:49.593469Z 0 [ERROR] [MY-010262] [Server] Can't start server: Bind on TCP/IP port: Address already in use
  2019-01-29T04:39:49.593491Z 0 [ERROR] [MY-010257] [Server] Do you already have another mysqld server running on port: 3306 ?
  2019-01-29T04:39:49.593525Z 0 [ERROR] [MY-010119] [Server] Aborting
  2019-01-29T04:39:50.983373Z 0 [System] [MY-010910] [Server] /usr/local/Cellar/mysql/8.0.13/bin/mysqld: Shutdown complete (mysqld 8.0.13)  Homebrew.
  2019-01-29T04:39:51.6NZ mysqld_safe mysqld from pid file /usr/local/var/mysql/-macbook.lan.pid ended
  2019-01-29T05:04:29.6NZ mysqld_safe Logging to '/usr/local/var/mysql/-macbook.lan.err'.
  2019-01-29T05:04:29.6NZ mysqld_safe Starting mysqld daemon with databases from /usr/local/var/mysql
  2019-01-29T05:04:30.224737Z 0 [System] [MY-010116] [Server] /usr/local/Cellar/mysql/8.0.13/bin/mysqld (mysqld 8.0.13) starting as process 989
  2019-01-29T05:04:30.245235Z 0 [Warning] [MY-010159] [Server] Setting lower_case_table_names=2 because file system for /usr/local/var/mysql/ is case insensitive
  2019-01-29T05:04:30.797676Z 0 [Warning] [MY-010068] [Server] CA certificate ca.pem is self signed.
  2019-01-29T05:04:30.805231Z 0 [ERROR] [MY-010262] [Server] Can't start server: Bind on TCP/IP port: Address already in use
  2019-01-29T05:04:30.805265Z 0 [ERROR] [MY-010257] [Server] Do you already have another mysqld server running on port: 3306 ?
  2019-01-29T05:04:30.805300Z 0 [ERROR] [MY-010119] [Server] Aborting
  2019-01-29T05:04:32.175755Z 0 [System] [MY-010910] [Server] /usr/local/Cellar/mysql/8.0.13/bin/mysqld: Shutdown complete (mysqld 8.0.13)  Homebrew.
  2019-01-29T05:04:32.6NZ mysqld_safe mysqld from pid file /usr/local/var/mysql/-macbook.lan.pid ended
  2019-01-29T05:39:19.6NZ mysqld_safe Logging to '/usr/local/var/mysql/-macbook.lan.err'.
  2019-01-29T05:39:19.6NZ mysqld_safe Starting mysqld daemon with databases from /usr/local/var/mysql
  2019-01-29T05:39:19.544597Z 0 [System] [MY-010116] [Server] /usr/local/Cellar/mysql/8.0.13/bin/mysqld (mysqld 8.0.13) starting as process 1882
  2019-01-29T05:39:19.551070Z 0 [Warning] [MY-010159] [Server] Setting lower_case_table_names=2 because file system for /usr/local/var/mysql/ is case insensitive
  2019-01-29T05:39:19.984015Z 0 [Warning] [MY-010068] [Server] CA certificate ca.pem is self signed.
  2019-01-29T05:39:19.991348Z 0 [ERROR] [MY-010262] [Server] Can't start server: Bind on TCP/IP port: Address already in use
  2019-01-29T05:39:19.991394Z 0 [ERROR] [MY-010257] [Server] Do you already have another mysqld server running on port: 3306 ?
  2019-01-29T05:39:19.991430Z 0 [ERROR] [MY-010119] [Server] Aborting
  2019-01-29T05:39:21.359167Z 0 [System] [MY-010910] [Server] /usr/local/Cellar/mysql/8.0.13/bin/mysqld: Shutdown complete (mysqld 8.0.13)  Homebrew.
  2019-01-29T05:39:21.6NZ mysqld_safe mysqld from pid file /usr/local/var/mysql/-macbook.lan.pid ended
  </code></pre>