Mac OS 環境にLaravel, MySQLを導入しているのですがうまく行きません。
brew install mysql
でMySQL 5.xを導入したのですがうまくいきません。
Mac でmySQL を使うための何か良い代替案ないでしょうか?
ローカル環境のLaravelから接続して使いたいのですが・・・
% sudo mysql -u root
ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/tmp/mysql.sock' (38)
% brew services
Name Status User Plist
[email protected] started root /Library/LaunchDaemons/[email protected]
% sudo /opt/homebrew/opt/[email protected]/bin/mysql.server start
Starting MySQL
. ERROR! The server quit without updating PID file (/opt/homebrew/var/mysql/MacBook-Air.local.pid).
touch /opt/homebrew/var/mysql/MacBook-Air.local.pid
% sudo /opt/homebrew/opt/[email protected]/bin/mysql.server start
Starting MySQL
. ERROR! The server quit without updating PID file (/opt/homebrew/var/mysql/MacBook-Air.local.pid).
sudo
は使ってはいけないようですが。.. ERROR! The server quit without updating PID file (/var/lib/mysql/****.local.pid)が出たときの解決法について, ERROR! The server quit without updating PID fileを解決したい 一度使ってしまったらアンインストール/再インストールが簡単なようですね。