<?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 Change a Default MySQL/MariaDB Data Directory in Linux	</title>
	<atom:link href="https://www.tecmint.com/change-default-mysql-mariadb-data-directory-in-linux/feed/" rel="self" type="application/rss+xml" />
	<link>https://www.tecmint.com/change-default-mysql-mariadb-data-directory-in-linux/</link>
	<description>Tecmint - Linux Howtos, Tutorials, Guides, News, Tips and Tricks.</description>
	<lastBuildDate>Sat, 24 Feb 2024 05:17:01 +0000</lastBuildDate>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	
	<item>
		<title>
		By: TG		</title>
		<link>https://www.tecmint.com/change-default-mysql-mariadb-data-directory-in-linux/comment-page-1/#comment-2139164</link>

		<dc:creator><![CDATA[TG]]></dc:creator>
		<pubDate>Sat, 24 Feb 2024 05:17:01 +0000</pubDate>
		<guid isPermaLink="false">http://www.tecmint.com/?p=24969#comment-2139164</guid>

					<description><![CDATA[In reply to &lt;a href=&quot;https://www.tecmint.com/change-default-mysql-mariadb-data-directory-in-linux/comment-page-1/#comment-1323426&quot;&gt;Jorg&lt;/a&gt;.

If you are moving to a folder under the home partition and you are using &lt;strong&gt;systemd&lt;/strong&gt; to start the database service, then this error can occur.

You need to create a folder with:
&lt;pre&gt;
mkdir /etc/systemd/system/mariadb.service.d/
&lt;/pre&gt;
Then create a file there with:
&lt;pre&gt;
sudo echo -e &quot;[Service]\nProtectHome=false\nProtectSystem=full\n&quot; &#062; /etc/systemd/system/mariadb.service.d/override.conf
&lt;/pre&gt;
Run: 
&lt;pre&gt;
sudo systemctl daemon-reload 
sudo systemctl start mysql
&lt;/pre&gt;
and you should be all set if the home folder restriction was your problem.]]></description>
			<content:encoded><![CDATA[<p>In reply to <a target="_blank" href="https://www.tecmint.com/change-default-mysql-mariadb-data-directory-in-linux/comment-page-1/#comment-1323426">Jorg</a>.</p>
<p>If you are moving to a folder under the home partition and you are using <strong>systemd</strong> to start the database service, then this error can occur.</p>
<p>You need to create a folder with:</p>
<pre>
mkdir /etc/systemd/system/mariadb.service.d/
</pre>
<p>Then create a file there with:</p>
<pre>
sudo echo -e "[Service]\nProtectHome=false\nProtectSystem=full\n" &gt; /etc/systemd/system/mariadb.service.d/override.conf
</pre>
<p>Run: </p>
<pre>
sudo systemctl daemon-reload 
sudo systemctl start mysql
</pre>
<p>and you should be all set if the home folder restriction was your problem.</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: David Ramirez		</title>
		<link>https://www.tecmint.com/change-default-mysql-mariadb-data-directory-in-linux/comment-page-1/#comment-1470011</link>

		<dc:creator><![CDATA[David Ramirez]]></dc:creator>
		<pubDate>Mon, 05 Apr 2021 04:59:18 +0000</pubDate>
		<guid isPermaLink="false">http://www.tecmint.com/?p=24969#comment-1470011</guid>

					<description><![CDATA[Hi, the part after copying the database files, restart MySQL - commands need revision.]]></description>
			<content:encoded><![CDATA[<p>Hi, the part after copying the database files, restart MySQL &#8211; commands need revision.</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: Ravi Saive		</title>
		<link>https://www.tecmint.com/change-default-mysql-mariadb-data-directory-in-linux/comment-page-1/#comment-1443524</link>

		<dc:creator><![CDATA[Ravi Saive]]></dc:creator>
		<pubDate>Wed, 03 Mar 2021 06:44:02 +0000</pubDate>
		<guid isPermaLink="false">http://www.tecmint.com/?p=24969#comment-1443524</guid>

					<description><![CDATA[In reply to &lt;a href=&quot;https://www.tecmint.com/change-default-mysql-mariadb-data-directory-in-linux/comment-page-1/#comment-1443329&quot;&gt;Paul&lt;/a&gt;.

@Paul,

Thanks, corrected the command in the article...]]></description>
			<content:encoded><![CDATA[<p>In reply to <a target="_blank" href="https://www.tecmint.com/change-default-mysql-mariadb-data-directory-in-linux/comment-page-1/#comment-1443329">Paul</a>.</p>
<p>@Paul,</p>
<p>Thanks, corrected the command in the article&#8230;</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: Paul		</title>
		<link>https://www.tecmint.com/change-default-mysql-mariadb-data-directory-in-linux/comment-page-1/#comment-1443329</link>

		<dc:creator><![CDATA[Paul]]></dc:creator>
		<pubDate>Tue, 02 Mar 2021 17:56:12 +0000</pubDate>
		<guid isPermaLink="false">http://www.tecmint.com/?p=24969#comment-1443329</guid>

					<description><![CDATA[Error in part 3 you say &lt;strong&gt;my.cnf&lt;/strong&gt; but in the commands, you use &lt;strong&gt;my.conf&lt;/strong&gt; this may be confusing...]]></description>
			<content:encoded><![CDATA[<p>Error in part 3 you say <strong>my.cnf</strong> but in the commands, you use <strong>my.conf</strong> this may be confusing&#8230;</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: david		</title>
		<link>https://www.tecmint.com/change-default-mysql-mariadb-data-directory-in-linux/comment-page-1/#comment-1429069</link>

		<dc:creator><![CDATA[david]]></dc:creator>
		<pubDate>Fri, 05 Feb 2021 11:24:16 +0000</pubDate>
		<guid isPermaLink="false">http://www.tecmint.com/?p=24969#comment-1429069</guid>

					<description><![CDATA[Hi!

I followed step to step but when I try to boot the services it doesn&#039;t work :(

2021-02-05 11:20:29 0 [Note] Server socket created on IP: &#039;::&#039;.
2021-02-05 11:20:29 0 [ERROR] Can&#039;t start server : Bind on unix socket: Operation not permitted
2021-02-05 11:20:29 0 [ERROR] Do you already have another mysqld server running on socket: /mnt/datos/mysql.sock ?
2021-02-05 11:20:29 0 [ERROR] Aborting

any idea?]]></description>
			<content:encoded><![CDATA[<p>Hi!</p>
<p>I followed step to step but when I try to boot the services it doesn&#8217;t work :(</p>
<p>2021-02-05 11:20:29 0 [Note] Server socket created on IP: &#8216;::&#8217;.<br />
2021-02-05 11:20:29 0 [ERROR] Can&#8217;t start server : Bind on unix socket: Operation not permitted<br />
2021-02-05 11:20:29 0 [ERROR] Do you already have another mysqld server running on socket: /mnt/datos/mysql.sock ?<br />
2021-02-05 11:20:29 0 [ERROR] Aborting</p>
<p>any idea?</p>
]]></content:encoded>
		
			</item>
	</channel>
</rss>
