So I'm following the Laravel 8 From Scratch series and have been stuck on this episode for about a week now because MySQL just will not work.
I started working with Laravel using WSL on Windows 10 but couldn't get MySQL to work as you can see in my previous thread.
I've switched to my Mac laptop (macOS Big Sur Version 11.6.2) because I wasn't having any luck with anything I found online/anything people suggested in my previous thread.
Even though I switched to a different OS I'm having a very similar issue. Here's my process:
brew install mysql
brew services start mysql
mysql -uroot -p
after running the last command I get this error:
ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/tmp/mysql.sock' (38)
I've looked through so many threads on so many different websites and nothing has worked. Is MySQL just a bad choice for Laravel and Mac/Linux operating systems? I really don't know where to go from here. This roadblock has lasted a week and I'm starting to feel like I'll never actually get MySQL to work properly.
In the episode I linked Jeffrey just simply installs MySQL and types mysql -uroot -p and it immediately works. Why is it so simple in the video yet my experience has been incredibly difficult?
If anyone has any insight on this I'd appreciate it a lot.