<?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: Kelvin Murumba</title>
    <description>The latest articles on DEV Community by Kelvin Murumba (@itsmurumba).</description>
    <link>https://dev.to/itsmurumba</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%2F162394%2F2a433129-7e7c-48b6-bc1f-d76f31b1dc38.jpeg</url>
      <title>DEV Community: Kelvin Murumba</title>
      <link>https://dev.to/itsmurumba</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/itsmurumba"/>
    <language>en</language>
    <item>
      <title>Fix PHPMyAdmin Error: requested authentication method unknown to the client [caching_sha2_password]</title>
      <dc:creator>Kelvin Murumba</dc:creator>
      <pubDate>Sat, 14 Nov 2020 07:17:20 +0000</pubDate>
      <link>https://dev.to/itsmurumba/fix-phpmyadmin-error-requested-authentication-method-unknown-to-the-client-cachingsha2password-1k52</link>
      <guid>https://dev.to/itsmurumba/fix-phpmyadmin-error-requested-authentication-method-unknown-to-the-client-cachingsha2password-1k52</guid>
      <description>&lt;p&gt;While installing PHPMyAdmin on your Mac OS, you might encounter the following error:&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fi%2Fan2eudeyoxfje3dc23vd.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fi%2Fan2eudeyoxfje3dc23vd.png" alt="Alt Text"&gt;&lt;/a&gt;&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;mysqli_real_connect(): The server requested authentication method unknown to the client [caching_sha2_password]
mysqli_real_connect(): (HY000/2054): The server requested authentication method unknown to the client
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;This error happens because of the change in authentication in the later MySQL versions.&lt;/p&gt;

&lt;p&gt;This is how to solve the above error:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Make sure your MySQL Server is running&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;&lt;a href="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fi%2Fbx9bx9yqab3zobplsu8h.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fi%2Fbx9bx9yqab3zobplsu8h.png" alt="Alt Text"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;From your terminal, login to MySQL:&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;&lt;code&gt;sudo /usr/local/mysql/bin/mysql -u root -p&lt;/code&gt;&lt;/p&gt;

&lt;p&gt;Enter the password you used to setup MySQL&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Run the below command from MySQL shell:&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;&lt;code&gt;ALTER USER 'user'@'localhost' IDENTIFIED WITH mysql_native_password BY 'password';&lt;/code&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;OR&lt;/strong&gt; &lt;/p&gt;

&lt;p&gt;&lt;code&gt;ALTER USER root IDENTIFIED WITH mysql_native_password BY 'password';&lt;/code&gt;&lt;/p&gt;

&lt;p&gt;Replace &lt;strong&gt;user&lt;/strong&gt; and &lt;strong&gt;password&lt;/strong&gt; with your actual values.&lt;/p&gt;

</description>
      <category>mysql</category>
      <category>macos</category>
      <category>phpmyadmin</category>
    </item>
  </channel>
</rss>
