I installed [email protected] using brew. Below are the comands I ran
brew install [email protected]
sudo chmod -R 777 /usr/local/var/mysql
sudo ln -s /usr/local/Cellar/mysql\@5.6/5.6.41/bin/mysql /usr/local/bin/mysql
sudo cp /usr/local/Cellar/mysql\@5.6/5.6.41/homebrew.mxcl.mysql.plist /Library/LaunchAgents/
sudo chown root /Library/LaunchAgents/homebrew.mxcl.mysql.plist
sudo chmod 600 /Library/LaunchAgents/homebrew.mxcl.mysql.plist
sudo chmod +x /Library/LaunchAgents/homebrew.mxcl.mysql.plist
launchctl load -w /Library/LaunchAgents/homebrew.mxcl.mysql.plist
mysql.server start
sh: mysql.server: command not found
this is the output I am getting. mysql --version is giving output
mysql Ver 14.14 Distrib 5.6.41, for osx10.13 (x86_64) using EditLine wrapper
If I start service via brew its starting
brew services start [email protected]
But when I run mysql -uroot I am getting
ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/tmp/mysql.sock' (2)
brew install [email protected]
thenbrew services start [email protected]
- that's it. All the other commands you're doing in between those two steps is ruining everything. – dossy(f=/usr/local/var/mysql; until [ "$f" = "/" ]; do ls -lda $f; f=$(dirname $f); done)
– dossyls -lda $(/usr/local/bin/mysqld --verbose --help 2>/dev/null | grep -A1 'Default options are read' | tail -1)
– dossyps -ef | grep mysqld
– dossy