コマンドラインで mysql が使えない

コマンドラインで mysql が使えない。

$ mysql --version
mysql  Ver 8.0.16 for osx10.14 on x86_64 (Homebrew)

$ sudo service mysqld start
sudo: service: command not found

$ service mysqld status
-bash: service: command not found

$ mysql -u root
ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/tmp/mysql.sock' (2)

sudo touch /tmp/mysql.sock

$ sudo mysql.server restart
 ERROR! MySQL server PID file could not be found!
Starting MySQL
.Logging to '/usr/local/var/mysql/xxxxxx-puro.local.err'.
 ERROR! The server quit without updating PID file (/usr/local/var/mysql/xxxxxx-puro.local.pid).

コメントを残す