MacOS https://www.novicedev.com/ en How to install MySQL on macOS with Homebrew https://www.novicedev.com/blog/how-install-mysql-macos-homebrew <span>How to install MySQL on macOS with Homebrew</span> <div class="field field--name-field-image field--type-image field--label-hidden field-item"> <img loading="lazy" src="/sites/novicedev/files/styles/blog_cover/public/2021-10/How%20to%20install%20MySQL%20on%20macOS%20with%20Homebrew_0.png?itok=UA-VW6Ip" width="772" height="464" alt="How to install MySQL on macOS with Homebrew" title="How to install MySQL on macOS with Homebrew" class="image-field" /> </div> <span><span>noviceadmin</span></span> <span>Mon, 10/11/2021 - 14:29</span> <div class="field field--name-body field--type-text-with-summary field--label-hidden field-item"><p><meta charset="utf-8" /></p> <p>This tutorial will guide you to install MySQL on your macOS with Homebrew.</p> <p>Homebrew is a package manager to provide a command-line tool to manage your utilities and applications.</p> <p><strong>NOTE:</strong> Make sure you have homebrew installed. If not then simply follow the guide here <a href="https://brew.sh/">https://brew.sh/</a></p> <p> </p> <h2><strong>Installation process:</strong></h2> <p><strong>1. Now simply run the below command in your terminal</strong></p> <pre> <code>$ brew install mysql</code></pre> <p><strong>2. Start the MySQL service</strong></p> <pre> <code>$ brew services start mysql</code></pre> <p><strong>3. Set root MySQL password</strong></p> <pre> <code>$ mysqladmin -u root password 'secretpassword'</code></pre> <p><strong>4. Access MySQL on mac</strong></p> <pre> <code>$ mysql -u root -p</code></pre> <p>Command will ask the password you just set in the previous step.</p> <p> </p> <h2>Things to remember</h2> <p><strong>Stop MySQL service on Mac start</strong></p> <p>If you don't want MySQL service to start every time you start your mac then run the below command</p> <pre> <code>$ brew services stop mysql</code></pre> <p>This will stop the MySQL service from running in the background.</p> <p><strong>Start MySQL service</strong></p> <p>You can always run the below command to start the MySQL server on mac and it will not start on the next computer restart</p> <pre> <code>$ mysql.server start</code></pre> <p><strong>Stop MySQL service</strong></p> <p>If you want to immediately stop the MySQL service then run the below command</p> <pre> <code>$ mysql.server stop</code></pre> <p><strong>GUI clients to access database</strong></p> <p>And you can also access your database with mac MySQL client to make your life easy. Here are a couple of suggestions:</p> <ul> <li>Sequel Pro - <a href="https://www.sequelpro.com/">https://www.sequelpro.com/</a></li> <li>TablePlus - <a href="https://tableplus.com/">https://tableplus.com/</a></li> </ul> <p> </p> <p>Cover Photo by <a href="https://unsplash.com/@devintavery?utm_source=unsplash&amp;utm_medium=referral&amp;utm_content=creditCopyText">Devin Avery</a> on <a href="https://unsplash.com/?utm_source=unsplash&amp;utm_medium=referral&amp;utm_content=creditCopyText">Unsplash</a></p> </div> <div class="node-taxonomy-container"> <ul class="taxonomy-terms"> <li class="taxonomy-term"><a href="/topic/homebrew" hreflang="en">Homebrew</a></li> <li class="taxonomy-term"><a href="/topic/mysql" hreflang="en">MySQL</a></li> <li class="taxonomy-term"><a href="/topic/macos" hreflang="en">MacOS</a></li> </ul> </div> <!--/.node-taxonomy-container --> <section id="node-article-comment--2" id="comments"> <div class="comment-form-wrap"> <h2 class="add-comment-title">Add new comment</h2> <drupal-render-placeholder callback="comment.lazy_builders:renderForm" arguments="0=node&amp;1=14&amp;2=comment&amp;3=comment" token="fmIfbiR8nl0e3Twra6AbI8B26q-U9xssL7b2YNbxsOs"></drupal-render-placeholder> </div> <!--/.comment-form --> </section> Mon, 11 Oct 2021 14:29:20 +0000 noviceadmin 14 at https://www.novicedev.com Terminal commands to start, stop or restart Apache Server on Mac OS https://www.novicedev.com/blog/terminal-commands-start-stop-or-restart-apache-server-mac-os <span>Terminal commands to start, stop or restart Apache Server on Mac OS</span> <div class="field field--name-field-image field--type-image field--label-hidden field-item"> <img loading="lazy" src="/sites/novicedev/files/styles/blog_cover/public/2021-08/Start%2C%20stop%20or%20restart%20Apache%20Web%20Server%20from%20terminal%20on%20Mac%20OS.jpg?itok=Xcj6_whl" width="772" height="496" alt="Terminal commands to start, stop or restart Apache Server on Mac OS" title="Terminal commands to start, stop or restart Apache Server on Mac OS" class="image-field" /> </div> <span><span>noviceadmin</span></span> <span>Wed, 11/14/2018 - 18:00</span> <div class="field field--name-body field--type-text-with-summary field--label-hidden field-item"><p>Whenever you edit <strong>'/etc/apache2/httpd.conf'</strong> file you need to restart apache on your mac. And you can make your life easy by using the terminal command to <strong>start, stop or restart the Apache server on Mac OX by simply executing the 'apachectl' commands</strong>.</p> <p> </p> <h2><strong>Command to restart mac apache server</strong></h2> <pre> <code class="language-apache">sudo apachectl restart</code></pre> <p>or</p> <pre> <code class="language-apache">sudo /usr/sbin/apachectl restart</code></pre> <p> </p> <h2><strong>Command to start mac apache server:</strong></h2> <pre> <code class="language-apache">sudo apachectl start</code></pre> <p>or</p> <pre> <code class="language-apache">sudo /usr/sbin/apachectl start</code></pre> <p> </p> <h2><strong>Command to stop mac apache server:</strong></h2> <pre> <code class="language-apache">sudo apachectl stop</code></pre> <p>or</p> <pre> <code class="language-apache">sudo /usr/sbin/apachectl stop</code></pre> <p> </p> <p>And yes it's not always necessary to check what the status of Apache is, you can simply run the restart command from the terminal, without worrying about whether it is running or stopped.</p> <p>The restart command is also very helpful if you make any changes related to your Apache server configuration in httpd.conf. And sometimes just <strong>restart the server before starting debugging</strong> why the website is not responding or something wrong with your Apache PHP setup.</p> </div> <div class="node-taxonomy-container"> <ul class="taxonomy-terms"> <li class="taxonomy-term"><a href="/topic/apache" hreflang="en">Apache</a></li> <li class="taxonomy-term"><a href="/topic/macos" hreflang="en">MacOS</a></li> </ul> </div> <!--/.node-taxonomy-container --> <section id="node-article-comment" id="comments"> <div class="comment-form-wrap"> <h2 class="add-comment-title">Add new comment</h2> <drupal-render-placeholder callback="comment.lazy_builders:renderForm" arguments="0=node&amp;1=12&amp;2=comment&amp;3=comment" token="gsI_b4s7jeSkQ5EGNx2lBXiItBywcZaYbU-FLbZT6U0"></drupal-render-placeholder> </div> <!--/.comment-form --> </section> Wed, 14 Nov 2018 18:00:17 +0000 noviceadmin 12 at https://www.novicedev.com