• Skip to primary navigation
  • Skip to main content

Digital and Computational Studies Blog

Bowdoin College - Brunswick, Maine

  • Home
  • Research Opportunities
  • Courses
  • Events
  • Faculty and Staff
  • About the DCS Blog
  • Show Search
Hide Search

MySQL Download and Setup: Mac OS X

April 24, 2016 By Gina Stalica '16

The MySQL download can be found here.

  1. Download the Mac OS X 10.10 (x86, 64-bit), DMG Archive.Screen Shot 2016-03-31 at 10.14.22 AM
  2. When download is complete, open the installation packages by double-clicking the package icon.  There will be a pop-up window that provides a temporary password for MySQL’s “root” user.  This password will be a slew of random characters that is crucial to getting MySQL up and running smoothly.  Be certain to take note of this password!
  3. Start your MySQL server instance from your computer’s System Preferences.  To do so, click the Apple icon in the upper right hand corner of your desktop screen.  Select System Preferences.
    Screen Shot 2016-03-31 at 10.47.37 AM
    In System Preferences, locate and double-click the MySQL icon.
    Screen Shot 2016-03-31 at 10.49.04 AM
    Press the “Start MySQL Server” button.
    Screen Shot 2016-03-31 at 10.49.19 AM
    You may be asked to enter a username and password in order to make this change.  This will be your normal desktop username and password. For example, if you are on a Bowdoin computer, this will be your Bowdoin username and password.
  4. From here, you will need to reset your MySQL root user password, which will require working from your computer’s Terminal with root user privileges.  To open up a Terminal window, open up Mac’s Finder.
    Screen Shot 2016-04-06 at 9.15.55 PM
    Locate the Applications folder, from there locate the Utilities folder, and the Terminal should be there.  Double-click the Terminal to open a window.Screen Shot 2016-04-06 at 9.16.42 PM
  5. In the Terminal, type the command: /usr/local/mysql/bin/mysql -u root -p
    Screen Shot 2016-04-07 at 10.58.12 PM
  6. Enter your temporary password and press Enter.  Note that the key icon will not move as you type in your password.  This is normal!
  7. From here, you are connected to the MySQL server from the root!  Screen Shot 2016-04-07 at 10.58.29 PMNow it’s time to change your password to something a bit more memorable (and less nonsensical).  Type the command: SET PASSWORD FOR ‘root’@’localhost’ = PASSWORD(‘typeyourpasswordhere’);  Be sure to type the command yourself.  Copying and pasting may cause a problematic difference in formatting.  It’s also worth noting the use of the semicolon here.  In SQL, like many other programming languages, the semicolon indicates the end of a statement, much like a period indicates the end of a sentence.Screen Shot 2016-04-07 at 11.13.44 PM

That’s all there is to it.  If you’ve made it this far without a glitch, congratulations!  You’ve successfully download MySQL, started the server, and have access via the root user with a newly created password.

Filed Under: SQL

Digital and Computational Studies Blog

research.bowdoin.edu