- Start MySQL
brew services start mysql - Or connect over the network instead
mysql -u root -p -h 127.0.0.1
Check it worked
- Check it's running
brew services list
- Start MySQLNeeds sudo
sudo systemctl start mysql - Or connect over the network instead
mysql -u root -p -h 127.0.0.1
Check it worked
- Check it's running
systemctl status mysql
- Start the MySQL serviceRun as administrator
Get-Service *mysql* | Start-ServiceOn Windows the error reads "Can't connect to MySQL server on localhost".
Check it worked
- Check it's running
Get-Service *mysql*