<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	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/"
	
	>
<channel>
	<title>
	Comments on: How to Reset MySQL or MariaDB Root Password in Linux	</title>
	<atom:link href="https://www.tecmint.com/reset-mysql-or-mariadb-root-password/feed/" rel="self" type="application/rss+xml" />
	<link>https://www.tecmint.com/reset-mysql-or-mariadb-root-password/</link>
	<description>Tecmint - Linux Howtos, Tutorials, Guides, News, Tips and Tricks.</description>
	<lastBuildDate>Thu, 18 Jun 2020 02:37:14 +0000</lastBuildDate>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	
	<item>
		<title>
		By: Khodeza Begum		</title>
		<link>https://www.tecmint.com/reset-mysql-or-mariadb-root-password/comment-page-1/#comment-1338946</link>

		<dc:creator><![CDATA[Khodeza Begum]]></dc:creator>
		<pubDate>Thu, 18 Jun 2020 02:37:14 +0000</pubDate>
		<guid isPermaLink="false">http://www.tecmint.com/?p=24912#comment-1338946</guid>

					<description><![CDATA[CGroup: /system.slice/mysqld.service
           ├─14887 /bin/sh /usr/bin/mysqld_safe --basedir=/usr
           └─15058 /usr/sbin/mysqld --basedir=/usr --datadir=/var/lib/mysql --plugin-dir=/usr/lib64/mysql/plugin --log-error=/var/log/mysqld.log --pid-file=/var/run/...

I am getting this, and from a different terminal, it still says access denied for root. Please advice]]></description>
			<content:encoded><![CDATA[<p>CGroup: /system.slice/mysqld.service<br />
           ├─14887 /bin/sh /usr/bin/mysqld_safe &#8211;basedir=/usr<br />
           └─15058 /usr/sbin/mysqld &#8211;basedir=/usr &#8211;datadir=/var/lib/mysql &#8211;plugin-dir=/usr/lib64/mysql/plugin &#8211;log-error=/var/log/mysqld.log &#8211;pid-file=/var/run/&#8230;</p>
<p>I am getting this, and from a different terminal, it still says access denied for root. Please advice</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: saravanakumar		</title>
		<link>https://www.tecmint.com/reset-mysql-or-mariadb-root-password/comment-page-1/#comment-1106092</link>

		<dc:creator><![CDATA[saravanakumar]]></dc:creator>
		<pubDate>Thu, 28 Feb 2019 05:20:35 +0000</pubDate>
		<guid isPermaLink="false">http://www.tecmint.com/?p=24912#comment-1106092</guid>

					<description><![CDATA[Hi do you have any doc for how to reset root password for MySql8.0]]></description>
			<content:encoded><![CDATA[<p>Hi do you have any doc for how to reset root password for MySql8.0</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: arun		</title>
		<link>https://www.tecmint.com/reset-mysql-or-mariadb-root-password/comment-page-1/#comment-1099469</link>

		<dc:creator><![CDATA[arun]]></dc:creator>
		<pubDate>Wed, 06 Feb 2019 09:42:57 +0000</pubDate>
		<guid isPermaLink="false">http://www.tecmint.com/?p=24912#comment-1099469</guid>

					<description><![CDATA[Not useful. Practical approach is appreciated]]></description>
			<content:encoded><![CDATA[<p>Not useful. Practical approach is appreciated</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: Ravi Saive		</title>
		<link>https://www.tecmint.com/reset-mysql-or-mariadb-root-password/comment-page-1/#comment-1099439</link>

		<dc:creator><![CDATA[Ravi Saive]]></dc:creator>
		<pubDate>Wed, 06 Feb 2019 06:53:24 +0000</pubDate>
		<guid isPermaLink="false">http://www.tecmint.com/?p=24912#comment-1099439</guid>

					<description><![CDATA[In reply to &lt;a href=&quot;https://www.tecmint.com/reset-mysql-or-mariadb-root-password/comment-page-1/#comment-1099417&quot;&gt;arun&lt;/a&gt;.

@Arun,

To reset root password in MySQL 8 version, use the followinig instructions.

1. First, stop the MySQL server and then restart it with the --skip-grant-tables option as shown.
&lt;pre&gt;
# systemctl stop mariadb
# systemctl set-environment MYSQLD_OPTS=&quot;--skip-grant-tables&quot;
# systemctl start mariadb
&lt;/pre&gt;
2. In the mysql client shell, tell the server to reload the grant tables so that account-management statements work. 
&lt;pre&gt;
mysql&gt; FLUSH PRIVILEGES;
&lt;/pre&gt;
3. Then change the &#039;root&#039;@&#039;localhost&#039; account password. Make sure to replace the password with the password that you want to use.
&lt;pre&gt;
mysql&gt; ALTER USER &#039;root&#039;@&#039;localhost&#039; IDENTIFIED BY &#039;MyNewPass&#039;;
&lt;/pre&gt;
4. Now stop the server, unset (the --skip-grant-tables) and restart the service.
&lt;pre&gt;
# systemctl stop mariadb
# systemctl unset-environment MYSQLD_OPTS
# systemctl start mariadb
&lt;/pre&gt;]]></description>
			<content:encoded><![CDATA[<p>In reply to <a target="_blank" href="https://www.tecmint.com/reset-mysql-or-mariadb-root-password/comment-page-1/#comment-1099417">arun</a>.</p>
<p>@Arun,</p>
<p>To reset root password in MySQL 8 version, use the followinig instructions.</p>
<p>1. First, stop the MySQL server and then restart it with the &#8211;skip-grant-tables option as shown.</p>
<pre>
# systemctl stop mariadb
# systemctl set-environment MYSQLD_OPTS="--skip-grant-tables"
# systemctl start mariadb
</pre>
<p>2. In the mysql client shell, tell the server to reload the grant tables so that account-management statements work. </p>
<pre>
mysql> FLUSH PRIVILEGES;
</pre>
<p>3. Then change the &#8216;root&#8217;@&#8217;localhost&#8217; account password. Make sure to replace the password with the password that you want to use.</p>
<pre>
mysql> ALTER USER 'root'@'localhost' IDENTIFIED BY 'MyNewPass';
</pre>
<p>4. Now stop the server, unset (the &#8211;skip-grant-tables) and restart the service.</p>
<pre>
# systemctl stop mariadb
# systemctl unset-environment MYSQLD_OPTS
# systemctl start mariadb
</pre>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: Ravi Saive		</title>
		<link>https://www.tecmint.com/reset-mysql-or-mariadb-root-password/comment-page-1/#comment-1099428</link>

		<dc:creator><![CDATA[Ravi Saive]]></dc:creator>
		<pubDate>Wed, 06 Feb 2019 06:39:08 +0000</pubDate>
		<guid isPermaLink="false">http://www.tecmint.com/?p=24912#comment-1099428</guid>

					<description><![CDATA[In reply to &lt;a href=&quot;https://www.tecmint.com/reset-mysql-or-mariadb-root-password/comment-page-1/#comment-1099417&quot;&gt;arun&lt;/a&gt;.

@Arun,

I need a time to test it, take screenshots and document it. Give me a day or two to publish the article on same..]]></description>
			<content:encoded><![CDATA[<p>In reply to <a target="_blank" href="https://www.tecmint.com/reset-mysql-or-mariadb-root-password/comment-page-1/#comment-1099417">arun</a>.</p>
<p>@Arun,</p>
<p>I need a time to test it, take screenshots and document it. Give me a day or two to publish the article on same..</p>
]]></content:encoded>
		
			</item>
	</channel>
</rss>
