<?xml version='1.0'?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:georss="http://www.georss.org/georss" xmlns:atom="http://www.w3.org/2005/Atom" >
<channel>
	<title><![CDATA[CleverPeople.com: All Site Blogs: January 2025}]]></title>
	<link>https://cleverpeople.com/blog/all/1735707600/1738386000</link>
	<atom:link href="https://cleverpeople.com/blog/all/1735707600/1738386000" rel="self" type="application/rss+xml" />
	<description><![CDATA[}]]></description>
		<item>
	<guid isPermaLink="true">https://cleverpeople.com/blog/view/21167/new-mysql-authentication-change-will-break-things</guid>
	<pubDate>Thu, 30 Jan 2025 15:36:45 -0500</pubDate>
	<link>https://cleverpeople.com/blog/view/21167/new-mysql-authentication-change-will-break-things</link>
	<title><![CDATA[New MySQL Authentication Change Will Break Things!]]></title>
	<description><![CDATA[<p>A new change to the authentication of <strong>MySQL v9.0</strong> is going to end up breaking lots of things and will be a headache for system database administrators.</p><p>Administrators will see a new error message stating: <i>Plugin <strong>mysql_native_password</strong> reported: ''<strong>mysql_native_password</strong>' is deprecated and will be removed in a future release. Please use <strong>caching_sha2_password</strong> instead.</i></p><p>The problem is: there is currently no known way to convert users to the new method without knowing the user's password, and how many folks will remember their database passwords? It just takes a simple line of SQL to convert the account, but finding all of the passwords and their use cases will be a nightmare.</p><p>To identify the users on the system who need to be updated, execute the following SQL on your MySQL server:</p><pre class="language-mysql" style="-webkit-font-smoothing:auto;-webkit-text-stroke-width:0px;border-radius:0.3em;border-width:0px;box-sizing:inherit;color:var(--c-color,#3f3f3f);font-family:Consolas, Monaco, &quot;Andale Mono&quot;, &quot;Ubuntu Mono&quot;, monospace;font-size:16px;font-style:normal;font-variant-caps:normal;font-variant-ligatures:normal;font-weight:350;hyphens:none;letter-spacing:normal;line-height:1.5;margin:0.5em 0px 1em;orphans:2;overflow-wrap:normal;overflow:auto;padding:1.25em 1em;position:relative;scrollbar-width:thin;tab-size:4;text-align:left;text-decoration-color:initial;text-decoration-style:initial;text-decoration-thickness:initial;text-indent:0px;text-transform:none;white-space:pre;widows:2;word-break:normal;word-spacing:0px;" tabindex="0"><code class="language-plaintext language-mysql" style="-webkit-font-smoothing:auto;border-radius:5px;box-sizing:inherit;color:var(--c-color,#3f3f3f);font-family:Consolas, Monaco, &quot;Andale Mono&quot;, &quot;Ubuntu Mono&quot;, monospace;font-size:1em;font-weight:400;hyphens:none;line-height:1.5;overflow-wrap:normal;padding:0px;tab-size:4;text-align:left;white-space:pre;word-break:normal;word-spacing:normal;">SELECT user, host, plugin from mysql.user WHERE plugin='mysql_native_password';</code></pre><p><br />And then using the user's password, convert the authentication from <i><strong>mysql_native_password</strong></i> to <i><strong>caching_sha2_password</strong></i> with the following SQL:</p><pre class="language-mysql" style="-webkit-font-smoothing:auto;-webkit-text-stroke-width:0px;border-radius:0.3em;border-width:0px;box-sizing:inherit;color:var(--c-color,#3f3f3f);font-family:Consolas, Monaco, &quot;Andale Mono&quot;, &quot;Ubuntu Mono&quot;, monospace;font-size:16px;font-style:normal;font-variant-caps:normal;font-variant-ligatures:normal;font-weight:350;hyphens:none;letter-spacing:normal;line-height:1.5;margin:0.5em 0px 1em;orphans:2;overflow-wrap:normal;overflow:auto;padding:1.25em 1em;position:relative;scrollbar-width:thin;tab-size:4;text-align:left;text-decoration-color:initial;text-decoration-style:initial;text-decoration-thickness:initial;text-indent:0px;text-transform:none;white-space:pre;widows:2;word-break:normal;word-spacing:0px;" tabindex="0"><code class="language-plaintext language-mysql" style="-webkit-font-smoothing:auto;border-radius:5px;box-sizing:inherit;color:var(--c-color,#3f3f3f);font-family:Consolas, Monaco, &quot;Andale Mono&quot;, &quot;Ubuntu Mono&quot;, monospace;font-size:1em;font-weight:400;hyphens:none;line-height:1.5;overflow-wrap:normal;padding:0px;tab-size:4;text-align:left;white-space:pre;word-break:normal;word-spacing:normal;">ALTER USER '&lt;USERNAME&gt;'@'&lt;HOST&gt;' IDENTIFIED WITH caching_sha2_password BY '&lt;PASSWORD&gt;';</code></pre><p>You'll obviously replace USERNAME, HOST, and PASSWORD with the appropriate values.<br />&nbsp;</p>]]></description>
	<dc:creator>Gary Wright II</dc:creator>		</item>
</channel>
</rss>
