<?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>Using Archives - Linux Windows and android Tutorials</title>
	<atom:link href="https://www.osradar.com/tag/using/feed/" rel="self" type="application/rss+xml" />
	<link>https://www.osradar.com</link>
	<description>tutorials and news and Seurity</description>
	<lastBuildDate>Wed, 06 Mar 2019 15:16:22 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=5.8.12</generator>
	<item>
		<title>Install MyCLI to improve the SQL typing</title>
		<link>https://www.osradar.com/install-mycli-to-improve-the-sql-typing/</link>
					<comments>https://www.osradar.com/install-mycli-to-improve-the-sql-typing/#respond</comments>
		
		<dc:creator><![CDATA[angeloma]]></dc:creator>
		<pubDate>Wed, 06 Mar 2019 15:16:22 +0000</pubDate>
				<category><![CDATA[Featured]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Databases]]></category>
		<category><![CDATA[mariadb]]></category>
		<category><![CDATA[MyCLI]]></category>
		<category><![CDATA[mysql]]></category>
		<category><![CDATA[server]]></category>
		<category><![CDATA[SQL]]></category>
		<category><![CDATA[Tutorial]]></category>
		<category><![CDATA[Using]]></category>
		<guid isPermaLink="false">https://www.osradar.com/?p=11309</guid>

					<description><![CDATA[<p>If we are using MySQL or MariaDB it is because we know the commands and the sentences. However, many times, despite knowing them, we can make a mistake. And a mistake could result in a loss of time or great damage to our database. For this and other reasons is that usually, on the client [&#8230;]</p>
<p>The post <a rel="nofollow" href="https://www.osradar.com/install-mycli-to-improve-the-sql-typing/">Install MyCLI to improve the SQL typing</a> appeared first on <a rel="nofollow" href="https://www.osradar.com">Linux  Windows and android  Tutorials</a>.</p>
]]></description>
										<content:encoded><![CDATA[<p>If we are using MySQL or MariaDB it is because we know the commands and the sentences. However, many times, despite knowing them, we can make a mistake. And a mistake could result in a loss of time or great damage to our database. For this and other reasons is that usually, on the client side we use applications to help us with the task. And on the server side? Fortunately, on the server side, we have available a tool that will help us interact with <a href="https://www.osradar.com/freeradius-with-mysql-backend/" target="_blank" rel="noopener noreferrer">MySQL</a> or <a href="https://www.osradar.com/optimize-mysql-mariadb-on-linux/" target="_blank" rel="noopener noreferrer">MariaDB</a>. So today I will teach you how to install MyCLI to improve the SQL typing.</p>
<p><a href="https://www.mycli.net/" target="_blank" rel="noopener noreferrer">MyCLI</a> is a tool made in Python with a BSD license that will help us to interact with the <a href="https://www.osradar.com/install-mywebsql-on-ubuntu-18-04/" target="_blank" rel="noopener noreferrer">SQL</a> language. It supports syntax highlighting and autocompletion. Currently, it only supports MySQL and MariaDB, more than enough for daily work. It has versions for Linux, Windows, and MacOS but it is in Linux where it is more focused.</p>
<p>So, let us install it.</p>
<h1>Install MyCLI on Linux</h1>
<p>MyCLI is easy to install on our Linux distribution because it is available through PIP. However, for some systems, it is found in the official repositories making installation even easier. So let us go for it.</p>
<p>If you are using Debian, Ubuntu, Linux Mint or ElementaryOS, open a terminal and run:</p>
<pre>:~$ sudo apt install mycli</pre>
<figure id="attachment_11310" aria-describedby="caption-attachment-11310" style="width: 1365px" class="wp-caption alignnone"><img loading="lazy" class="size-full wp-image-11310" src="https://www.osradar.com/wp-content/uploads/2019/03/1-3.png" alt="1 Install MyCLI" width="1365" height="323" srcset="https://www.osradar.com/wp-content/uploads/2019/03/1-3.png 1365w, https://www.osradar.com/wp-content/uploads/2019/03/1-3-300x71.png 300w, https://www.osradar.com/wp-content/uploads/2019/03/1-3-768x182.png 768w, https://www.osradar.com/wp-content/uploads/2019/03/1-3-1024x242.png 1024w, https://www.osradar.com/wp-content/uploads/2019/03/1-3-696x165.png 696w, https://www.osradar.com/wp-content/uploads/2019/03/1-3-1068x253.png 1068w" sizes="(max-width: 1365px) 100vw, 1365px" /><figcaption id="caption-attachment-11310" class="wp-caption-text">1 Install MyCLI</figcaption></figure>
<p>On the other hand, if you are using Fedora:</p>
<pre>:~$ sudo dnf install mycli</pre>
<p>However for others Linux distribution, you have to install python PIP and then,</p>
<pre>:~$ pip install mycli</pre>
<p>As you can see the installation is simple.</p>
<h1>Basic use of MyCLI</h1>
<p>Once we have it installed in our system, it only remains to start using it.</p>
<p>To use it, it is necessary to follow this syntax:</p>
<pre>:~$ mycli -u [user] -p [database]</pre>
<p>Then, you will have to type the root password to enter. It is also possible to do this by specifying a user and a host, for example:</p>
<pre>:~$ mycli -u [user] -h [host] -p [database]</pre>
<p>Once you have entered your password, you will see that you can start working. Its main feature is the autocompletion of the syntax.</p>
<figure id="attachment_11311" aria-describedby="caption-attachment-11311" style="width: 1366px" class="wp-caption alignnone"><img loading="lazy" class="size-full wp-image-11311" src="https://www.osradar.com/wp-content/uploads/2019/03/2-3.png" alt="2.- Using MyCLI" width="1366" height="768" srcset="https://www.osradar.com/wp-content/uploads/2019/03/2-3.png 1366w, https://www.osradar.com/wp-content/uploads/2019/03/2-3-300x169.png 300w, https://www.osradar.com/wp-content/uploads/2019/03/2-3-768x432.png 768w, https://www.osradar.com/wp-content/uploads/2019/03/2-3-1024x576.png 1024w, https://www.osradar.com/wp-content/uploads/2019/03/2-3-696x391.png 696w, https://www.osradar.com/wp-content/uploads/2019/03/2-3-1068x600.png 1068w, https://www.osradar.com/wp-content/uploads/2019/03/2-3-747x420.png 747w" sizes="(max-width: 1366px) 100vw, 1366px" /><figcaption id="caption-attachment-11311" class="wp-caption-text">2.- Using MyCLI</figcaption></figure>
<p>Finally, MyCLI has the help that you can take full advantage of.</p>
<pre>:~$ mycli --help</pre>
<figure id="attachment_11312" aria-describedby="caption-attachment-11312" style="width: 959px" class="wp-caption alignnone"><img loading="lazy" class="size-full wp-image-11312" src="https://www.osradar.com/wp-content/uploads/2019/03/3-3.png" alt="3.- MyCLI version" width="959" height="633" srcset="https://www.osradar.com/wp-content/uploads/2019/03/3-3.png 959w, https://www.osradar.com/wp-content/uploads/2019/03/3-3-300x198.png 300w, https://www.osradar.com/wp-content/uploads/2019/03/3-3-768x507.png 768w, https://www.osradar.com/wp-content/uploads/2019/03/3-3-696x459.png 696w, https://www.osradar.com/wp-content/uploads/2019/03/3-3-636x420.png 636w" sizes="(max-width: 959px) 100vw, 959px" /><figcaption id="caption-attachment-11312" class="wp-caption-text">3.- MyCLI version</figcaption></figure>
<p>This way you will be able to use MyCLI better.</p>
<h1>Conclusion</h1>
<p>MyCLI is a very simple tool but it will help a lot in SQL management. Although it is limited to MySQL and MariaDB it is enough for our daily work or educational project. This greatly improves workflow and agility in SQL.</p>
<p>The post <a rel="nofollow" href="https://www.osradar.com/install-mycli-to-improve-the-sql-typing/">Install MyCLI to improve the SQL typing</a> appeared first on <a rel="nofollow" href="https://www.osradar.com">Linux  Windows and android  Tutorials</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.osradar.com/install-mycli-to-improve-the-sql-typing/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
	</channel>
</rss>
