<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: Felicia oke</title>
    <description>The latest articles on DEV Community by Felicia oke (@felicia04323).</description>
    <link>https://dev.to/felicia04323</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F1281748%2Fda653fd6-102d-4b3e-b11e-4d4a086bac53.png</url>
      <title>DEV Community: Felicia oke</title>
      <link>https://dev.to/felicia04323</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/felicia04323"/>
    <language>en</language>
    <item>
      <title>How to reset MySQL 8 password on Mac</title>
      <dc:creator>Felicia oke</dc:creator>
      <pubDate>Thu, 15 Feb 2024 13:41:12 +0000</pubDate>
      <link>https://dev.to/felicia04323/how-to-reset-mysql-8-password-on-mac-3geg</link>
      <guid>https://dev.to/felicia04323/how-to-reset-mysql-8-password-on-mac-3geg</guid>
      <description>&lt;p&gt;&lt;code&gt;Mysql&lt;/code&gt; is a powerful database management system that is open-source and free. To prevent unauthorized access, it offers administrative access to the database system. You may also select which database operations a user is permitted to do.&lt;br&gt;
In this post, we'll walk you through two basic steps for resetting your MySQL password&lt;code&gt;on a&lt;/code&gt;Mac`. &lt;/p&gt;

&lt;h2&gt;
  
  
  Prerequisites
&lt;/h2&gt;

&lt;p&gt;To complete this tutorial, you must have the following are required:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Having access to a server running MySQL e.g apache&lt;/li&gt;
&lt;li&gt;You must have a MySQL database already
## Resetting MySQL password&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;In this post, we'll walk you through two basic steps for resetting your MySQL password on a Mac.&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;&lt;strong&gt;Stopping a MySQL server&lt;/strong&gt;&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;If mysql is being utilized, it must first be stopped from running. To do so, open your terminal and type the following command:&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;sudo /usr/local/mysql/support-files/mysql.server stop
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;

&lt;p&gt;This will bring the server to a stop, allowing us to proceed with the password reset.&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;&lt;strong&gt;Running safe mode&lt;/strong&gt;&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;We need to run the MySQL server in safe mode with&lt;code&gt; privilege bypass&lt;/code&gt;. To accomplish this, use the following command in the terminal:&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;sudo mysqld_safe --skip-grant-tables
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;

&lt;ol&gt;
&lt;li&gt;&lt;strong&gt;Setting the password&lt;/strong&gt;&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;Now that we've bypassed MySQL server privilege, we need to reset the user password to null. To do so, start a new terminal and type the commands below:&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;mysql -u root
UPDATE mysql.user SET authentication_string=null WHERE User='root';
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;

&lt;p&gt;We can now modify the user password because it has been changed to null. To accomplish this, enter the following commands:&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;mysql -u root
UPDATE mysql.user SET authentication_string=PASSWORD("newpassword") WHERE User='root';
FLUSH PRIVILEGES;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;

&lt;p&gt;Change the &lt;code&gt;**newpassword&lt;/code&gt;** in the above command to your desired password.&lt;/p&gt;

&lt;h2&gt;
  
  
  recap
&lt;/h2&gt;

&lt;p&gt;The overall command to change the password is as follows:&lt;/p&gt;


&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;sudo /usr/local/mysql/support-files/mysql.server stop&lt;br&gt;
sudo mysqld_safe --skip-grant-tables&lt;br&gt;
mysql -u root&lt;br&gt;
UPDATE mysql.user SET authentication_string=null WHERE User='root';&lt;br&gt;
mysql -u root&lt;br&gt;
UPDATE mysql.user SET authentication_string=PASSWORD("newpassword") WHERE User='root';&lt;br&gt;
FLUSH PRIVILEGES;&lt;br&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;
&lt;h2&gt;
&lt;br&gt;
  &lt;br&gt;
  &lt;br&gt;
  Connecting the new MySQL password to Arctype&lt;br&gt;
&lt;/h2&gt;

&lt;p&gt;You can now connect the new password to your Arctype account after successfully resetting the MySQL user password.&lt;br&gt;
The step-by-step instructions below will show you how to connect with Arctype:&lt;br&gt;
'Step 1': go to arctype.com and download Arctype Workplace for Windows.&lt;br&gt;
'Step2': after installing Arctype, run it and the MySQL server as well. This will take you to a welcome page where you can log in to your account, then to the 'connection page' where you will select MySQL.&lt;/p&gt;

&lt;p&gt;‘Step3;’ After selecting MySQL, we open a page where you can fill in the details. In the 'password field,' don't forget to use mysql's new password. When you click save the connection,' you'll be sent to your Arctype workspace dashboard.&lt;/p&gt;

&lt;h2&gt;
  
  
  Conclusion
&lt;/h2&gt;

&lt;p&gt;We learned how to change MySQL 8 user password on Mac, as well as how to connect mysql with Arctype workspace in this article.&lt;/p&gt;

</description>
    </item>
  </channel>
</rss>
