<?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 Execute MySQL Queries via Linux Terminal	</title>
	<atom:link href="https://www.tecmint.com/run-mysql-queries-linux-command-line/feed/" rel="self" type="application/rss+xml" />
	<link>https://www.tecmint.com/run-mysql-queries-linux-command-line/</link>
	<description>Tecmint - Linux Howtos, Tutorials, Guides, News, Tips and Tricks.</description>
	<lastBuildDate>Thu, 27 Nov 2025 07:37:55 +0000</lastBuildDate>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	
	<item>
		<title>
		By: Bernt B		</title>
		<link>https://www.tecmint.com/run-mysql-queries-linux-command-line/comment-page-1/#comment-865919</link>

		<dc:creator><![CDATA[Bernt B]]></dc:creator>
		<pubDate>Thu, 09 Feb 2017 14:12:14 +0000</pubDate>
		<guid isPermaLink="false">http://www.tecmint.com/?p=22336#comment-865919</guid>

					<description><![CDATA[Search for how to use the &lt;strong&gt;mysql_config&lt;/strong&gt;_editor command. It stores the data encrypted.

You set it up with:
&lt;pre&gt;
# mysql_config_editor set --login-path=myserver --host=dbserver.foo.com --user=adam -p
&lt;/pre&gt;
Then you can do:
&lt;pre&gt;
alias sqlcmd=&#039;mysql --login-path=myserver  -Dmydbname  --execute&#039;
&lt;/pre&gt;
And finally:
&lt;pre&gt;
sqlcmd &#039;DESC table&#039;
&lt;/pre&gt;]]></description>
			<content:encoded><![CDATA[<p>Search for how to use the <strong>mysql_config</strong>_editor command. It stores the data encrypted.</p>
<p>You set it up with:</p>
<pre>
# mysql_config_editor set --login-path=myserver --host=dbserver.foo.com --user=adam -p
</pre>
<p>Then you can do:</p>
<pre>
alias sqlcmd='mysql --login-path=myserver  -Dmydbname  --execute'
</pre>
<p>And finally:</p>
<pre>
sqlcmd 'DESC table'
</pre>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: LempStacker		</title>
		<link>https://www.tecmint.com/run-mysql-queries-linux-command-line/comment-page-1/#comment-810572</link>

		<dc:creator><![CDATA[LempStacker]]></dc:creator>
		<pubDate>Mon, 29 Aug 2016 01:15:04 +0000</pubDate>
		<guid isPermaLink="false">http://www.tecmint.com/?p=22336#comment-810572</guid>

					<description><![CDATA[Maybe we can create a file name &#039;.my.cnf&#039; under user home directory, add mysql user, password in it, like this
[client]
user=USERNAME
password=USERPASSWD

then change its mode as 600, so we can use command &#039;mysql&#039; directly without set parameter &#039;-p&#039;, and password prompt would not appear.]]></description>
			<content:encoded><![CDATA[<p>Maybe we can create a file name &#8216;.my.cnf&#8217; under user home directory, add mysql user, password in it, like this<br />
[client]<br />
user=USERNAME<br />
password=USERPASSWD</p>
<p>then change its mode as 600, so we can use command &#8216;mysql&#8217; directly without set parameter &#8216;-p&#8217;, and password prompt would not appear.</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: Tom-Erik Paulsen		</title>
		<link>https://www.tecmint.com/run-mysql-queries-linux-command-line/comment-page-1/#comment-808932</link>

		<dc:creator><![CDATA[Tom-Erik Paulsen]]></dc:creator>
		<pubDate>Mon, 22 Aug 2016 21:59:37 +0000</pubDate>
		<guid isPermaLink="false">http://www.tecmint.com/?p=22336#comment-808932</guid>

					<description><![CDATA[Wow , someone should make a tutorial on how to make a READ ONLY user for that tutorial. Even if the password is prompted, newcomers would easily add the root password to a script and pat themselves on the back.﻿]]></description>
			<content:encoded><![CDATA[<p>Wow , someone should make a tutorial on how to make a READ ONLY user for that tutorial. Even if the password is prompted, newcomers would easily add the root password to a script and pat themselves on the back.﻿</p>
]]></content:encoded>
		
			</item>
	</channel>
</rss>
