{"id":8229,"date":"2017-04-07T12:45:27","date_gmt":"2017-04-07T19:45:27","guid":{"rendered":"http:\/\/alannarisse.com\/blog\/?p=8229"},"modified":"2017-04-10T15:00:10","modified_gmt":"2017-04-10T22:00:10","slug":"quick-start-guide-wordpress-development-osx","status":"publish","type":"post","link":"https:\/\/www.alannarisse.com\/blog\/quick-start-guide-wordpress-development-osx\/","title":{"rendered":"Quick Start Guide for WordPress development on OSX"},"content":{"rendered":"<p>I found this great WordPress guide on installing a local development environment using brew and npm\u00a0for wordpress, php and mysql. With\u00a0the\u00a0db running through\u00a0brew services. Loving it. Install was fairly easy, with a little bit of troubleshooting (why oh why did I not document the troubleshooting part!).<\/p>\n<p>Here&#8217;s the site:\u00a0<a href=\"http:\/\/www.brodybits.com\/wordpress\/osx\/homebrew\/2016\/03\/09\/quickstart-wordpress-testing-with-osx-homebrew.html\">http:\/\/www.brodybits.com\/wordpress\/osx\/homebrew\/2016\/03\/09\/quickstart-wordpress-testing-with-osx-homebrew.html<\/a><\/p>\n<p>I cannot for the life of me remember how to create a new db, the instructions\u00a0in the quick\u00a0start aren&#8217;t working for me.<\/p>\n<p>This post shows\u00a0a much\u00a0better method for creating new databases once you&#8217;ve gotten everything else running from the quick start guide above.<\/p>\n<p><a href=\"http:\/\/russianz.blogspot.com\/2010\/07\/how-to-create-database-for-mac-os-x.html\">http:\/\/russianz.blogspot.com\/2010\/07\/how-to-create-database-for-mac-os-x.html<\/a><\/p>\n<p>Step 1<br \/>\nmysql.server start<br \/>\n<span class=\"Apple-style-span\"><span class=\"il\"><b>Step 2:<\/b><\/span><\/span><br \/>\n<span class=\"Apple-style-span\"><span class=\"il\">Type:<\/span><\/span><br \/>\n<span class=\"Apple-style-span\"><span class=\"il\">shell&gt;\u00a0mysql<\/span><\/span><span class=\"Apple-style-span\">\u00a0<\/span><span class=\"Apple-style-span\">-u root -p<\/span><span class=\"Apple-style-span\"><br \/>\n<\/span><br \/>\n<span class=\"Apple-style-span\">Response:\u00a0<\/span><br \/>\n<span class=\"Apple-style-span\">Enter password:<\/span><span class=\"Apple-style-span\"><br \/>\n<\/span><span class=\"Apple-style-span\">Welcome to the<\/span><span class=\"Apple-style-span\">\u00a0<\/span><span class=\"Apple-style-span\"><span class=\"il\">MySQL<\/span><\/span><span class=\"Apple-style-span\">\u00a0<\/span><span class=\"Apple-style-span\">monitor. \u00a0Commands end with ; or \\g.<\/span><span class=\"Apple-style-span\"><br \/>\n<\/span><span class=\"Apple-style-span\">Your<\/span><span class=\"Apple-style-span\">\u00a0<\/span><span class=\"Apple-style-span\"><span class=\"il\">MySQL<\/span><\/span><span class=\"Apple-style-span\">\u00a0<\/span><span class=\"Apple-style-span\">connection id is 1<\/span><span class=\"Apple-style-span\"><br \/>\n<\/span><span class=\"Apple-style-span\">Server version: 5.0.88-log Source distribution<\/span><span class=\"Apple-style-span\"><br \/>\n<\/span><span class=\"Apple-style-span\">Type &#8216;help;&#8217; or &#8216;\\h&#8217; for help. Type &#8216;\\c&#8217; to clear the current input statement.<\/span><span class=\"Apple-style-span\"><br \/>\n<\/span><span class=\"Apple-style-span\"><br \/>\n<\/span><span class=\"Apple-style-span\">shell&gt; \u00a0create database db_wordpress;<\/span><span class=\"Apple-style-span\"><br \/>\n<\/span><span class=\"Apple-style-span\">Response: Query OK, 1 row affected (0.08 sec)<\/span><span class=\"Apple-style-span\"><br \/>\n<\/span><span class=\"Apple-style-span\"><br \/>\n<\/span><span class=\"Apple-style-span\">shell&gt; GRANT ALL ON wordpress.* TO admin@localhost IDENTIFIED BY &#8220;YourPWHere&#8221;;<\/span><span class=\"Apple-style-span\"><br \/>\n<\/span><span class=\"Apple-style-span\">Response: Query OK, 0 rows affected (0.08 sec)<\/span><span class=\"Apple-style-span\"><br \/>\n<\/span><\/p>\n","protected":false},"excerpt":{"rendered":"<p>I found this great WordPress guide on installing a local development environment using brew and npm\u00a0for wordpress, php and mysql. With\u00a0the\u00a0db running through\u00a0brew services. Loving it. Install was fairly easy, with a little bit of troubleshooting (why oh why did I not document the troubleshooting part!). Here&#8217;s the site:\u00a0http:\/\/www.brodybits.com\/wordpress\/osx\/homebrew\/2016\/03\/09\/quickstart-wordpress-testing-with-osx-homebrew.html I cannot for the life of [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[],"tags":[],"class_list":["post-8229","post","type-post","status-publish","format-standard","hentry"],"_links":{"self":[{"href":"https:\/\/www.alannarisse.com\/blog\/wp-json\/wp\/v2\/posts\/8229","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.alannarisse.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.alannarisse.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.alannarisse.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.alannarisse.com\/blog\/wp-json\/wp\/v2\/comments?post=8229"}],"version-history":[{"count":1,"href":"https:\/\/www.alannarisse.com\/blog\/wp-json\/wp\/v2\/posts\/8229\/revisions"}],"predecessor-version":[{"id":8230,"href":"https:\/\/www.alannarisse.com\/blog\/wp-json\/wp\/v2\/posts\/8229\/revisions\/8230"}],"wp:attachment":[{"href":"https:\/\/www.alannarisse.com\/blog\/wp-json\/wp\/v2\/media?parent=8229"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.alannarisse.com\/blog\/wp-json\/wp\/v2\/categories?post=8229"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.alannarisse.com\/blog\/wp-json\/wp\/v2\/tags?post=8229"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}