![]() ![]() Username is “root” and password the same as chosen in the previous step, for me that’s “password”. First, install brew services by tapping homebrew/services (one time): brew tap homebrew/services Here’s an example usage: brew services start mysql > Successfully started mysql ( label: ) Behind the scenes, brew services start is doing everything in the post-install message above. The database to connect to is on localhost so set “host” to “127.0.0.1”. In case you are wondering, I am not actually affiliated with it in anyway.ĭownload and install Sequel Pro and open it. ![]() I use Sequel Pro to manage MySQL because it has a pretty great UI. Once installed and running, MySQL is accessible to any app running locally on your machine. Set a rudimentary password for MySQL locally, there is no need to worry about security because it will only be accessible from your machine (I used “password”). To do this, use brew to start the MySQL daemon. ![]() You will want to keep MySQL running whenever your computer is started. Run this command to install MySQL brew install mysql Update Homebrew to ensure you get the latest packages brew update usr/bin/ruby -e "$(curl -fsSL )" Install MySQL Run the following command in a terminal window to install Homebrew. ![]() If you do not have Homebrew it will print nothing. If you have Homebrew it will print something similar to /usr/local/bin/brew. If you are not sure, run the following command. If you already have Homebrew, you can skip this section. Homebrew is a package manager for Mac and serves a similar purpose to apt-get in Linux. This short tutorial shows how to install MySQL on a Mac using Homebrew and how to verify it is running using Sequel Pro. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |