{"id":192,"date":"2019-11-01T10:37:03","date_gmt":"2019-11-01T10:37:03","guid":{"rendered":"https:\/\/www.samarthya.me\/wps\/?p=192"},"modified":"2019-11-01T10:37:03","modified_gmt":"2019-11-01T10:37:03","slug":"mysql-mariadb-on-mac","status":"publish","type":"post","link":"https:\/\/blog.samarthya.me\/wps\/2019\/11\/01\/mysql-mariadb-on-mac\/","title":{"rendered":"MySQL\/MariaDB on MAC"},"content":{"rendered":"<blockquote><p>Challenges are plenty but outcome is always one &#8211; Learning!<\/p><\/blockquote>\n<p>While trying to troubleshoot an inhouse application I had to setup a quick MySQL instance which led me to install my first instance of MariaDB on my local MAC machine.<\/p>\n<p>BREW is my poison. You need to open a terminal and issue<\/p>\n<blockquote><p>brew install mariadb<\/p><\/blockquote>\n<p>It helped me get the binaries on my system.<\/p>\n<p>The challenge shifted from getting the binaries to starting the server.<\/p>\n<blockquote><p>brew services &#8211;help<\/p><\/blockquote>\n<p>It lists out the commands you can utilize to start stop and list all the services running at that moment.<\/p>\n<p>To start your MYSQL Daemon you just need to issue<\/p>\n<blockquote><p>brew services start mariadb<\/p><\/blockquote>\n<p>And to validate the status you can issue<\/p>\n<blockquote><p>brew services list<\/p><\/blockquote>\n<p>It should give an output like under<\/p>\n<p><img decoding=\"async\" class=\"aligncenter  wp-image-193\" src=\"https:\/\/www.samarthya.me\/wps\/wp-content\/uploads\/2019\/11\/brew-list-services-300x19.png\" alt=\"\" width=\"727\" height=\"46\" srcset=\"https:\/\/blog.samarthya.me\/wps\/wp-content\/uploads\/2019\/11\/brew-list-services-300x19.png 300w, https:\/\/blog.samarthya.me\/wps\/wp-content\/uploads\/2019\/11\/brew-list-services-700x45.png 700w, https:\/\/blog.samarthya.me\/wps\/wp-content\/uploads\/2019\/11\/brew-list-services.png 707w\" sizes=\"(max-width: 727px) 100vw, 727px\" \/><\/p>\n<p>Time to login<\/p>\n<blockquote><p>sudo mysql -u root<\/p><\/blockquote>\n<p>If you issue the command without sudo you wont be able to, as by default the root has no password for the local installation.<\/p>\n<p>You can set the password using<\/p>\n<blockquote><p>SET Password=PASSWORD(&#8216;mypassword&#8217;)<\/p><\/blockquote>\n<p>You can validate the output by issuing<\/p>\n<blockquote><p>select host, user, authentication_string, password from mysql.user;<\/p><\/blockquote>\n","protected":false},"excerpt":{"rendered":"<p>Challenges are plenty but outcome is always one &#8211; Learning! While trying to troubleshoot an inhouse application I had to setup a quick MySQL instance which led me to install my first instance of MariaDB on my local MAC machine. BREW is my poison. You need to open a terminal and issue brew install mariadb [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_exactmetrics_skip_tracking":false,"_exactmetrics_sitenote_active":false,"_exactmetrics_sitenote_note":"","_exactmetrics_sitenote_category":0,"footnotes":""},"categories":[1],"tags":[],"class_list":["post-192","post","type-post","status-publish","format-standard","hentry","category-others"],"_links":{"self":[{"href":"https:\/\/blog.samarthya.me\/wps\/wp-json\/wp\/v2\/posts\/192","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/blog.samarthya.me\/wps\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blog.samarthya.me\/wps\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blog.samarthya.me\/wps\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.samarthya.me\/wps\/wp-json\/wp\/v2\/comments?post=192"}],"version-history":[{"count":0,"href":"https:\/\/blog.samarthya.me\/wps\/wp-json\/wp\/v2\/posts\/192\/revisions"}],"wp:attachment":[{"href":"https:\/\/blog.samarthya.me\/wps\/wp-json\/wp\/v2\/media?parent=192"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.samarthya.me\/wps\/wp-json\/wp\/v2\/categories?post=192"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.samarthya.me\/wps\/wp-json\/wp\/v2\/tags?post=192"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}