{"id":417,"date":"2016-04-24T19:43:01","date_gmt":"2016-04-25T00:43:01","guid":{"rendered":"https:\/\/researchbdev.wpengine.com\/digital-computational-studies\/?p=417"},"modified":"2017-04-20T09:22:44","modified_gmt":"2017-04-20T14:22:44","slug":"mysql-download-and-setup-mac-os-x","status":"publish","type":"post","link":"https:\/\/research.bowdoin.edu\/digital-computational-studies\/student-research\/sql\/mysql-download-and-setup-mac-os-x\/","title":{"rendered":"MySQL Download and Setup: Mac OS X"},"content":{"rendered":"<p>The MySQL download can be found <a href=\"https:\/\/dev.mysql.com\/downloads\/mysql\/\">here<\/a>.<\/p>\n<ol>\n<li>Download the\u00a0<b><\/b><b>Mac OS X 10.10 (x86, 64-bit), DMG Archive.<\/b><a href=\"https:\/\/research.bowdoin.edu\/digital-computational-studies\/files\/2016\/03\/Screen-Shot-2016-03-31-at-10.14.22-AM1.png\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter wp-image-427 size-full\" src=\"https:\/\/research.bowdoin.edu\/digital-computational-studies\/files\/2016\/03\/Screen-Shot-2016-03-31-at-10.14.22-AM1.png\" alt=\"Screen Shot 2016-03-31 at 10.14.22 AM\" width=\"644\" height=\"477\" srcset=\"https:\/\/research.bowdoin.edu\/digital-computational-studies\/files\/2016\/03\/Screen-Shot-2016-03-31-at-10.14.22-AM1.png 644w, https:\/\/research.bowdoin.edu\/digital-computational-studies\/files\/2016\/03\/Screen-Shot-2016-03-31-at-10.14.22-AM1-300x222.png 300w, https:\/\/research.bowdoin.edu\/digital-computational-studies\/files\/2016\/03\/Screen-Shot-2016-03-31-at-10.14.22-AM1-250x185.png 250w, https:\/\/research.bowdoin.edu\/digital-computational-studies\/files\/2016\/03\/Screen-Shot-2016-03-31-at-10.14.22-AM1-624x462.png 624w\" sizes=\"auto, (max-width: 644px) 100vw, 644px\" \/><br \/>\n<\/a><\/li>\n<li>When download is complete, open the installation packages by double-clicking the package icon. \u00a0There will be a pop-up window that provides a <strong>temporary password for MySQL&#8217;s &#8220;root&#8221; user<\/strong>. \u00a0This password will be a slew of random characters that is crucial to getting MySQL up and running smoothly. \u00a0Be certain to take note of this password!<\/li>\n<li>Start your <strong>MySQL server instance<\/strong> from your computer&#8217;s System Preferences. \u00a0To do so, click the Apple icon in the upper right hand corner of your desktop screen. \u00a0Select System Preferences.<br \/>\n<a href=\"https:\/\/research.bowdoin.edu\/digital-computational-studies\/files\/2016\/03\/Screen-Shot-2016-03-31-at-10.47.37-AM.png\"><img loading=\"lazy\" decoding=\"async\" class=\" size-full wp-image-430 aligncenter\" src=\"https:\/\/research.bowdoin.edu\/digital-computational-studies\/files\/2016\/03\/Screen-Shot-2016-03-31-at-10.47.37-AM.png\" alt=\"Screen Shot 2016-03-31 at 10.47.37 AM\" width=\"404\" height=\"271\" srcset=\"https:\/\/research.bowdoin.edu\/digital-computational-studies\/files\/2016\/03\/Screen-Shot-2016-03-31-at-10.47.37-AM.png 404w, https:\/\/research.bowdoin.edu\/digital-computational-studies\/files\/2016\/03\/Screen-Shot-2016-03-31-at-10.47.37-AM-300x201.png 300w, https:\/\/research.bowdoin.edu\/digital-computational-studies\/files\/2016\/03\/Screen-Shot-2016-03-31-at-10.47.37-AM-250x168.png 250w\" sizes=\"auto, (max-width: 404px) 100vw, 404px\" \/><\/a><br \/>\nIn System Preferences, locate\u00a0and double-click the MySQL icon.<br \/>\n<a href=\"https:\/\/research.bowdoin.edu\/digital-computational-studies\/files\/2016\/03\/Screen-Shot-2016-03-31-at-10.49.04-AM.png\"><img loading=\"lazy\" decoding=\"async\" class=\" size-full wp-image-431 aligncenter\" src=\"https:\/\/research.bowdoin.edu\/digital-computational-studies\/files\/2016\/03\/Screen-Shot-2016-03-31-at-10.49.04-AM.png\" alt=\"Screen Shot 2016-03-31 at 10.49.04 AM\" width=\"688\" height=\"611\" srcset=\"https:\/\/research.bowdoin.edu\/digital-computational-studies\/files\/2016\/03\/Screen-Shot-2016-03-31-at-10.49.04-AM.png 688w, https:\/\/research.bowdoin.edu\/digital-computational-studies\/files\/2016\/03\/Screen-Shot-2016-03-31-at-10.49.04-AM-300x266.png 300w, https:\/\/research.bowdoin.edu\/digital-computational-studies\/files\/2016\/03\/Screen-Shot-2016-03-31-at-10.49.04-AM-250x222.png 250w, https:\/\/research.bowdoin.edu\/digital-computational-studies\/files\/2016\/03\/Screen-Shot-2016-03-31-at-10.49.04-AM-624x554.png 624w\" sizes=\"auto, (max-width: 688px) 100vw, 688px\" \/><\/a><br \/>\nPress the &#8220;Start MySQL Server&#8221; button.<br \/>\n<a href=\"https:\/\/research.bowdoin.edu\/digital-computational-studies\/files\/2016\/03\/Screen-Shot-2016-03-31-at-10.49.19-AM.png\"><img loading=\"lazy\" decoding=\"async\" class=\" size-full wp-image-432 aligncenter\" src=\"https:\/\/research.bowdoin.edu\/digital-computational-studies\/files\/2016\/03\/Screen-Shot-2016-03-31-at-10.49.19-AM.png\" alt=\"Screen Shot 2016-03-31 at 10.49.19 AM\" width=\"682\" height=\"329\" srcset=\"https:\/\/research.bowdoin.edu\/digital-computational-studies\/files\/2016\/03\/Screen-Shot-2016-03-31-at-10.49.19-AM.png 682w, https:\/\/research.bowdoin.edu\/digital-computational-studies\/files\/2016\/03\/Screen-Shot-2016-03-31-at-10.49.19-AM-300x145.png 300w, https:\/\/research.bowdoin.edu\/digital-computational-studies\/files\/2016\/03\/Screen-Shot-2016-03-31-at-10.49.19-AM-250x121.png 250w, https:\/\/research.bowdoin.edu\/digital-computational-studies\/files\/2016\/03\/Screen-Shot-2016-03-31-at-10.49.19-AM-624x301.png 624w\" sizes=\"auto, (max-width: 682px) 100vw, 682px\" \/><\/a><br \/>\nYou may be asked to enter a username and password in order to make this change. \u00a0This 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.<\/li>\n<li>From here, you will need to reset your MySQL root user password, which will require working from your computer&#8217;s Terminal with\u00a0root user privileges. \u00a0To open up a Terminal window, open up Mac&#8217;s Finder.<br \/>\n<img loading=\"lazy\" decoding=\"async\" class=\" size-full wp-image-437 aligncenter\" src=\"https:\/\/research.bowdoin.edu\/digital-computational-studies\/files\/2016\/04\/Screen-Shot-2016-04-06-at-9.15.55-PM.png\" alt=\"Screen Shot 2016-04-06 at 9.15.55 PM\" width=\"244\" height=\"189\" \/><br \/>\nLocate the Applications folder, from there locate the Utilities folder, and the Terminal should be there. \u00a0Double-click the Terminal to open a window.<a href=\"https:\/\/research.bowdoin.edu\/digital-computational-studies\/files\/2016\/04\/Screen-Shot-2016-04-06-at-9.16.42-PM.png\"><img loading=\"lazy\" decoding=\"async\" class=\" size-full wp-image-438 aligncenter\" src=\"https:\/\/research.bowdoin.edu\/digital-computational-studies\/files\/2016\/04\/Screen-Shot-2016-04-06-at-9.16.42-PM.png\" alt=\"Screen Shot 2016-04-06 at 9.16.42 PM\" width=\"441\" height=\"487\" srcset=\"https:\/\/research.bowdoin.edu\/digital-computational-studies\/files\/2016\/04\/Screen-Shot-2016-04-06-at-9.16.42-PM.png 441w, https:\/\/research.bowdoin.edu\/digital-computational-studies\/files\/2016\/04\/Screen-Shot-2016-04-06-at-9.16.42-PM-272x300.png 272w, https:\/\/research.bowdoin.edu\/digital-computational-studies\/files\/2016\/04\/Screen-Shot-2016-04-06-at-9.16.42-PM-250x276.png 250w\" sizes=\"auto, (max-width: 441px) 100vw, 441px\" \/><\/a><\/li>\n<li>In the Terminal, type the command: <strong>\/usr\/local\/mysql\/bin\/mysql -u root -p<br \/>\n<a href=\"https:\/\/research.bowdoin.edu\/digital-computational-studies\/files\/2016\/04\/Screen-Shot-2016-04-07-at-10.58.12-PM.png\"><img loading=\"lazy\" decoding=\"async\" class=\" size-full wp-image-440 aligncenter\" src=\"https:\/\/research.bowdoin.edu\/digital-computational-studies\/files\/2016\/04\/Screen-Shot-2016-04-07-at-10.58.12-PM.png\" alt=\"Screen Shot 2016-04-07 at 10.58.12 PM\" width=\"568\" height=\"192\" srcset=\"https:\/\/research.bowdoin.edu\/digital-computational-studies\/files\/2016\/04\/Screen-Shot-2016-04-07-at-10.58.12-PM.png 568w, https:\/\/research.bowdoin.edu\/digital-computational-studies\/files\/2016\/04\/Screen-Shot-2016-04-07-at-10.58.12-PM-300x101.png 300w, https:\/\/research.bowdoin.edu\/digital-computational-studies\/files\/2016\/04\/Screen-Shot-2016-04-07-at-10.58.12-PM-250x85.png 250w\" sizes=\"auto, (max-width: 568px) 100vw, 568px\" \/><\/a><br \/>\n<\/strong><\/li>\n<li>Enter your temporary password and press Enter. \u00a0Note that the key icon will not move as you type in your password. \u00a0This is normal!<\/li>\n<li>From here, you are connected to the MySQL server from the root! \u00a0<img loading=\"lazy\" decoding=\"async\" class=\" size-full wp-image-441 aligncenter\" src=\"https:\/\/research.bowdoin.edu\/digital-computational-studies\/files\/2016\/04\/Screen-Shot-2016-04-07-at-10.58.29-PM.png\" alt=\"Screen Shot 2016-04-07 at 10.58.29 PM\" width=\"568\" height=\"288\" srcset=\"https:\/\/research.bowdoin.edu\/digital-computational-studies\/files\/2016\/04\/Screen-Shot-2016-04-07-at-10.58.29-PM.png 568w, https:\/\/research.bowdoin.edu\/digital-computational-studies\/files\/2016\/04\/Screen-Shot-2016-04-07-at-10.58.29-PM-300x152.png 300w, https:\/\/research.bowdoin.edu\/digital-computational-studies\/files\/2016\/04\/Screen-Shot-2016-04-07-at-10.58.29-PM-250x127.png 250w\" sizes=\"auto, (max-width: 568px) 100vw, 568px\" \/>Now it&#8217;s time to change your password to something a bit more memorable (and less nonsensical). \u00a0Type the command: <strong>SET PASSWORD FOR &#8216;root&#8217;@&#8217;localhost&#8217; = PASSWORD(&#8216;typeyourpasswordhere&#8217;);<\/strong> \u00a0Be sure to type the command yourself. \u00a0Copying and pasting may cause a problematic difference in formatting. \u00a0It&#8217;s also worth noting the use of the semicolon here. \u00a0In SQL, like many other programming languages, the semicolon indicates the end of a statement, much like a period indicates the end of a sentence.<a href=\"https:\/\/research.bowdoin.edu\/digital-computational-studies\/files\/2016\/04\/Screen-Shot-2016-04-07-at-11.13.44-PM.png\"><img loading=\"lazy\" decoding=\"async\" class=\" size-full wp-image-444 aligncenter\" src=\"https:\/\/research.bowdoin.edu\/digital-computational-studies\/files\/2016\/04\/Screen-Shot-2016-04-07-at-11.13.44-PM.png\" alt=\"Screen Shot 2016-04-07 at 11.13.44 PM\" width=\"569\" height=\"79\" srcset=\"https:\/\/research.bowdoin.edu\/digital-computational-studies\/files\/2016\/04\/Screen-Shot-2016-04-07-at-11.13.44-PM.png 569w, https:\/\/research.bowdoin.edu\/digital-computational-studies\/files\/2016\/04\/Screen-Shot-2016-04-07-at-11.13.44-PM-300x42.png 300w, https:\/\/research.bowdoin.edu\/digital-computational-studies\/files\/2016\/04\/Screen-Shot-2016-04-07-at-11.13.44-PM-250x35.png 250w\" sizes=\"auto, (max-width: 569px) 100vw, 569px\" \/><\/a><\/li>\n<\/ol>\n<p>That&#8217;s all there is to it. \u00a0If you&#8217;ve made it this far without a glitch, congratulations! \u00a0You&#8217;ve successfully download MySQL, started the server, and have access via the root user with a newly created password.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>The MySQL download can be found here. Download the\u00a0Mac OS X 10.10 (x86, 64-bit), DMG Archive. When download is complete, open the installation packages by double-clicking the package icon. \u00a0There will be a pop-up window that provides a temporary password for MySQL&#8217;s &#8220;root&#8221; user. \u00a0This password will be a slew of random characters that is [&hellip;]<\/p>\n","protected":false},"author":106,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_genesis_hide_title":false,"_genesis_hide_breadcrumbs":false,"_genesis_hide_singular_image":false,"_genesis_hide_footer_widgets":false,"_genesis_custom_body_class":"","_genesis_custom_post_class":"","_genesis_layout":"","footnotes":""},"categories":[17],"tags":[],"class_list":{"0":"post-417","1":"post","2":"type-post","3":"status-publish","4":"format-standard","6":"category-sql","7":"entry"},"_links":{"self":[{"href":"https:\/\/research.bowdoin.edu\/digital-computational-studies\/wp-json\/wp\/v2\/posts\/417","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/research.bowdoin.edu\/digital-computational-studies\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/research.bowdoin.edu\/digital-computational-studies\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/research.bowdoin.edu\/digital-computational-studies\/wp-json\/wp\/v2\/users\/106"}],"replies":[{"embeddable":true,"href":"https:\/\/research.bowdoin.edu\/digital-computational-studies\/wp-json\/wp\/v2\/comments?post=417"}],"version-history":[{"count":0,"href":"https:\/\/research.bowdoin.edu\/digital-computational-studies\/wp-json\/wp\/v2\/posts\/417\/revisions"}],"wp:attachment":[{"href":"https:\/\/research.bowdoin.edu\/digital-computational-studies\/wp-json\/wp\/v2\/media?parent=417"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/research.bowdoin.edu\/digital-computational-studies\/wp-json\/wp\/v2\/categories?post=417"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/research.bowdoin.edu\/digital-computational-studies\/wp-json\/wp\/v2\/tags?post=417"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}