Home>

$mysql.server start
When I execute, the following is displayed and I cannot start it.

ERROR! The server quit without updating PID file (/usr/local/var/mysql/ (my PC name) .local.pid).


When I checked the log, it appeared like this in the error part.

[ERROR] [MY-010457] [Server] --initialize specified but the data directory has files in it. Aborting.
[ERROR] [MY-013236] [Server] The designated data directory/usr/local/var/mysql/is unusable. You can remove all files that the server added to it.
[ERROR] [MY-010119] [Server] Aborting


I tried uninstalling it, but it didn't work.
I have referred to various articles, but there is no improvement yet.
I'm not sure if it will be a clue to the solution because there is a part that I was a little worried about in the trial, but I will post it.
It may not be related, but ...

$netstat -na | grep LISTEN
tcp46 0 0 * .3000 *. * LISTEN
tcp4 0 0 127.0.0.1.49489 *. * LISTEN
tcp4 0 0 127.0.0.1.45623 *. * LISTEN
tcp4 0 0 127.0.0.1.56506 *. * LISTEN
tcp4 0 0 127.0.0.1.56505 *. * LISTEN
tcp4 0 0 127.0.0.1.16494 *. * LISTEN
tcp4 0 0 127.0.0.1.15393 *. * LISTEN
tcp4 0 0 127.0.0.1.15292 *. * LISTEN
tcp4 0 0 127.0.0.1.17603 *. * LISTEN
tcp4 0 0 127.0.0.1.17600 *. * LISTEN
tcp4 0 0 * .17500 *. * LISTEN
tcp6 0 0 * .17500 *. * LISTEN
tcp6 0 0 * .60888 *. * LISTEN
tcp4 0 0 * .60888 *. * LISTEN
tcp4 0 0 127.0.0.1.49848 *. * LISTEN
tcp4 0 0 127.0.0.1.9090 *. * LISTEN
tcp46 0 0 * .5055 *. * LISTEN
tcp4 0 0 * .5055 *. * LISTEN