<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Aqeel Zafar</title>
	<atom:link href="https://aqeeliz.com/feed/" rel="self" type="application/rss+xml" />
	<link>https://aqeeliz.com</link>
	<description></description>
	<lastBuildDate>Wed, 08 May 2024 18:16:20 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=7.0</generator>
	<item>
		<title>MariaDB 11.3: ERROR 1044 (42000): Access denied for user root@localhost to database</title>
		<link>https://aqeeliz.com/2024/05/mariadb-11-3-error-1044-42000-access-denied-for-user-rootlocalhost-to-database/</link>
					<comments>https://aqeeliz.com/2024/05/mariadb-11-3-error-1044-42000-access-denied-for-user-rootlocalhost-to-database/#respond</comments>
		
		<dc:creator><![CDATA[Aqeel Z]]></dc:creator>
		<pubDate>Wed, 08 May 2024 18:16:20 +0000</pubDate>
				<category><![CDATA[Programming]]></category>
		<category><![CDATA[mariadb]]></category>
		<guid isPermaLink="false">https://aqeeliz.com/?p=35</guid>

					<description><![CDATA[Recently, when trying to setup this blog, I got stuck with an unusual error. When granting permission to new user for wordpress database, it gave Access denied error. This doesn&#8217;t make sense, since root is supposed to have all the access. And I have created users before, and given them access, with same user and [&#8230;]]]></description>
										<content:encoded><![CDATA[
<p class="wp-block-paragraph">Recently, when trying to setup this blog, I got stuck with an unusual error. When granting permission to new user for wordpress database, it gave Access denied error.</p>



<pre class="wp-block-code"><code>MariaDB &#91;(none)]&gt; GRANT ALL PRIVILEGES ON wordpressblog.* TO wordpressuser@localhost;
ERROR 1044 (42000): Access denied for user 'root'@'localhost' to database 'wordpressblog'
</code></pre>



<p class="wp-block-paragraph">This doesn&#8217;t make sense, since <em>root</em> is supposed to have all the access. And I have created users before, and given them access, with same user and on same machine.</p>



<p class="wp-block-paragraph">Searching online, or asking in couple of help channels didn&#8217;t help much, so, to debug the exact permission that might be giving me error, I tried checking the GRANTs and it turned out I was missing <strong>SHOW CREATE ROUTINE</strong> GRANT.</p>



<p class="wp-block-paragraph">After that it was simple to just replace <strong>GRANT ALL</strong> with the exact list of GRANTs. Though after finding the problem, it turns out it&#8217;s a new GRANT added in Mariadb and is mentioned in the <a href="https://mariadb.com/kb/en/mariadb-11-3-2-release-notes/">Release Notes for 11.3.2</a>. To quote:</p>



<blockquote class="wp-block-quote is-layout-flow wp-block-quote-is-layout-flow">
<p class="wp-block-paragraph">Note that upgrading from earlier versions will leave all users, including root and other users with <code>ALL PRIVILEGES ON *.*</code>, and <code>ALL PRIVILEGES ON db.*</code>, without the <a href="https://mariadb.com/kb/en/grant/#database-privileges">SHOW CREATE ROUTINE</a> privilege. While the users with read privileges on <code>mysql.proc</code> will be have the effective privileges of <code>SHOW CREATE ROUTINE</code>, they are unable to <code>GRANT</code> them.</p>



<p class="wp-block-paragraph">To gain the privileges back on a global user, e.g. <code>root@localhost</code>:</p>



<ol class="wp-block-list" start="1">
<li>Start server with <a href="https://mariadb.com/kb/en/server-system-variables/#skip_grant_tables">skip-grant-tables</a> as a configuration option</li>



<li>Run <code><a href="https://mariadb.com/kb/en/mariadb-client/">mariadb client</a></code></li>



<li>Execute <code><a href="https://mariadb.com/kb/en/flush/">FLUSH PRIVILEGES</a></code></li>



<li>Execute <code><a href="https://mariadb.com/kb/en/grant/">GRANT ALL ON *.* TO <code>root@localhost</code> WITH GRANT OPTION</a></code></li>



<li>Remove the <code>skip-grant-tables</code> option from the configuration file.</li>
</ol>



<p class="wp-block-paragraph">To re-gain a database level privileges, using a user with <code>SHOW CREATE ROUTINE</code> on <code>*.*</code> execute <code><a href="https://mariadb.com/kb/en/grant/">GRANT ALL ON db.* TO user]<code> optionally </code>WITH GRANT OPTION</a></code>.</p>
</blockquote>



<p class="wp-block-paragraph">In hindsight, that&#8217;s a very simple issue, but it stumped me for quite a bit. Hence sharing it so it can be helpful to others.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://aqeeliz.com/2024/05/mariadb-11-3-error-1044-42000-access-denied-for-user-rootlocalhost-to-database/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>Federation Test Post</title>
		<link>https://aqeeliz.com/2024/04/federation-test-post/</link>
					<comments>https://aqeeliz.com/2024/04/federation-test-post/#comments</comments>
		
		<dc:creator><![CDATA[Aqeel Z]]></dc:creator>
		<pubDate>Tue, 16 Apr 2024 18:50:15 +0000</pubDate>
				<category><![CDATA[Uncategorized]]></category>
		<guid isPermaLink="false">https://aqeeliz.com/?p=28</guid>

					<description><![CDATA[Well, my first post had a same slug as the default &#8220;hello-world&#8221; post, so making another test post, with a different title, to see if it federates. Wish me luck!]]></description>
										<content:encoded><![CDATA[
<p class="wp-block-paragraph">Well, my first post had a same slug as the default &#8220;hello-world&#8221; post, so making another test post, with a different title, to see if it federates.</p>



<p class="wp-block-paragraph">Wish me luck!</p>
]]></content:encoded>
					
					<wfw:commentRss>https://aqeeliz.com/2024/04/federation-test-post/feed/</wfw:commentRss>
			<slash:comments>1</slash:comments>
		
		
			</item>
		<item>
		<title>Hello World!</title>
		<link>https://aqeeliz.com/2024/04/hello-world/</link>
					<comments>https://aqeeliz.com/2024/04/hello-world/#respond</comments>
		
		<dc:creator><![CDATA[Aqeel Z]]></dc:creator>
		<pubDate>Tue, 16 Apr 2024 15:51:01 +0000</pubDate>
				<category><![CDATA[Uncategorized]]></category>
		<guid isPermaLink="false">https://aqeeliz.com/?p=20</guid>

					<description><![CDATA[Just a test post to see if everything is working as it should.]]></description>
										<content:encoded><![CDATA[
<p class="wp-block-paragraph">Just a test post to see if everything is working as it should.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://aqeeliz.com/2024/04/hello-world/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
	</channel>
</rss>
