Skip to content

Instantly share code, notes, and snippets.

@timvw
Created April 30, 2024 07:44
Show Gist options
  • Save timvw/122c768bff1e5702820dcf54753e5bde to your computer and use it in GitHub Desktop.
Save timvw/122c768bff1e5702820dcf54753e5bde to your computer and use it in GitHub Desktop.
mysql
We've installed your MySQL database without a root password. To secure it run:
mysql_secure_installation
MySQL is configured to only allow connections from localhost by default
To connect run:
mysql -u root
To start mysql now and restart at login:
brew services start mysql
Or, if you don't want/need a background service you can just run:
/opt/homebrew/opt/mysql/bin/mysqld_safe --datadir\=/opt/homebrew/var/mysql
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment