Skip to content

Instantly share code, notes, and snippets.

@pertrai1
Last active September 7, 2022 22:57
Show Gist options
  • Save pertrai1/a87a33da45a0271ba0ea4c260d09e9a6 to your computer and use it in GitHub Desktop.
Save pertrai1/a87a33da45a0271ba0ea4c260d09e9a6 to your computer and use it in GitHub Desktop.
MySQL Notes

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 -uroot

To restart mysql after an upgrade: brew services restart 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


mysqld stop
mysql.server start
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment