MySQL doesn't start on a Mac, it's /opt/homebrew/var/mysql/MacBook-Air.local.pid that many people face...

Asked 2 years ago, Updated 2 years ago, 43 views

I have deployed Ravel, MySQL in my Mac OS environment, but it doesn't work.
brew install mysql introduced MySQL 5.x, but it didn't work.
Do you have any good alternatives to using mySQL on your Mac?
I'd like to use it by connecting from Ravel in the local environment...

%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).

mysql macos

2022-09-29 22:00

2 Answers

sudo mysql-u root I don't think any files have been created.

mysql.server start

Would it be okay to do so?


2022-09-29 22:00

I think MySQL could not be used in Mac local environment.
Create a Linux virtual environment.


2022-09-29 22:00

If you have any answers or tips


© 2024 OneMinuteCode. All rights reserved.