<?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>tutoral Archives - Linux Windows and android Tutorials</title>
	<atom:link href="https://www.osradar.com/tag/tutoral/feed/" rel="self" type="application/rss+xml" />
	<link>https://www.osradar.com</link>
	<description>tutorials and news and Seurity</description>
	<lastBuildDate>Wed, 28 Aug 2019 20:15:18 +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>How to install MySQL on Debian 10?</title>
		<link>https://www.osradar.com/install-mysql-on-debian-10/</link>
					<comments>https://www.osradar.com/install-mysql-on-debian-10/#respond</comments>
		
		<dc:creator><![CDATA[angeloma]]></dc:creator>
		<pubDate>Sat, 31 Aug 2019 00:22:20 +0000</pubDate>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Programming]]></category>
		<category><![CDATA[Technology]]></category>
		<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[Buster]]></category>
		<category><![CDATA[debian]]></category>
		<category><![CDATA[How to]]></category>
		<category><![CDATA[howto]]></category>
		<category><![CDATA[mysql]]></category>
		<category><![CDATA[SQL]]></category>
		<category><![CDATA[tutoral]]></category>
		<guid isPermaLink="false">https://www.osradar.com/?p=13194</guid>

					<description><![CDATA[<p>Debian is a fairly popular operating system for servers. However, it is also used by a large number of people as an operating system on their desktop computer. But the two characteristics that make Debian a popular system are the stability and a large number of packages available to install. On the other hand, because [&#8230;]</p>
<p>The post <a rel="nofollow" href="https://www.osradar.com/install-mysql-on-debian-10/">How to install MySQL on Debian 10?</a> appeared first on <a rel="nofollow" href="https://www.osradar.com">Linux  Windows and android  Tutorials</a>.</p>
]]></description>
										<content:encoded><![CDATA[<p>Debian is a fairly popular operating system for servers. However, it is also used by a large number of people as an operating system on their desktop computer. But the two characteristics that make Debian a popular system are the stability and a large number of packages available to install. On the other hand, because of this many developers and administrators of networks and systems rely on Debian to serve their data to the rest of the users. In the case of data, there are many database handlers available in the official Debian repositories, but one MySQL is missing. In this post, you will learn how to install MySQL on Debian 10.</p>
<h2>Why MySQL is not on the official repository?</h2>
<p>This is due to a change of ownership and philosophy on the part of <a href="https://www.mysql.com/" rel="noopener noreferrer">MySQL</a>. Well, actually by the company that bought it that is Oracle. Then, a MySQL fork called MariaDB was made. There are no big differences between the two.</p>
<p>On the other hand, MySQL has a version dedicated to companies that add professional support. Something that still makes it powerful in the business segment. Then, we can say that although <a href="https://www.osradar.com/tag/mariadb/" rel="noopener noreferrer">MariaDB</a> is perfectly usable and compatible with MySQL many companies still prefer the support of this program.</p>
<p>In the same order of ideas, <a href="https://www.osradar.com/tag/debian/" rel="noopener noreferrer">Debian</a> has a fair community philosophy and has decided not to include MySQL by default. But we can install it without major problems. This is the goal of the post.</p>
<h2>Install MySQL on Debian 10</h2>
<p>If you open a terminal session and use APT to search for the MySQL package in the official repositories, you will have this screen output:</p>
<figure id="attachment_13251" aria-describedby="caption-attachment-13251" style="width: 546px" class="wp-caption alignnone"><img loading="lazy" class="size-full wp-image-13251" src="https://www.osradar.com/wp-content/uploads/2019/08/1-22.jpeg" alt="1.- Search for MySQL on Debian 10" width="546" height="275" srcset="https://www.osradar.com/wp-content/uploads/2019/08/1-22.jpeg 546w, https://www.osradar.com/wp-content/uploads/2019/08/1-22-300x151.jpeg 300w" sizes="(max-width: 546px) 100vw, 546px" /><figcaption id="caption-attachment-13251" class="wp-caption-text">1.- Search for MySQL on Debian 10</figcaption></figure>
<p>As you can see, MySQL is not available on Debian 10. But just add a repository to make it available. First, download the DEB package that adds it using wget.</p>
<pre>:~$ wget http://repo.mysql.com/mysql-apt-config_0.8.13-1_all.deb</pre>
<figure id="attachment_13252" aria-describedby="caption-attachment-13252" style="width: 1344px" class="wp-caption alignnone"><img loading="lazy" class="size-full wp-image-13252" src="https://www.osradar.com/wp-content/uploads/2019/08/2-19.jpeg" alt="2.- Download the repository packages" width="1344" height="248" srcset="https://www.osradar.com/wp-content/uploads/2019/08/2-19.jpeg 1344w, https://www.osradar.com/wp-content/uploads/2019/08/2-19-300x55.jpeg 300w, https://www.osradar.com/wp-content/uploads/2019/08/2-19-768x142.jpeg 768w, https://www.osradar.com/wp-content/uploads/2019/08/2-19-1024x189.jpeg 1024w, https://www.osradar.com/wp-content/uploads/2019/08/2-19-696x128.jpeg 696w, https://www.osradar.com/wp-content/uploads/2019/08/2-19-1068x197.jpeg 1068w" sizes="(max-width: 1344px) 100vw, 1344px" /><figcaption id="caption-attachment-13252" class="wp-caption-text">2.- Download the repository packages</figcaption></figure>
<p>That package we just downloaded requires GNUPG as a dependency. Then it has to be installed.</p>
<pre>:~$ sudo apt install gnupg</pre>
<figure id="attachment_13253" aria-describedby="caption-attachment-13253" style="width: 1168px" class="wp-caption alignnone"><img loading="lazy" class="size-full wp-image-13253" src="https://www.osradar.com/wp-content/uploads/2019/08/3-17.jpeg" alt="3.- Install GNUPG on Debian 10" width="1168" height="267" srcset="https://www.osradar.com/wp-content/uploads/2019/08/3-17.jpeg 1168w, https://www.osradar.com/wp-content/uploads/2019/08/3-17-300x69.jpeg 300w, https://www.osradar.com/wp-content/uploads/2019/08/3-17-768x176.jpeg 768w, https://www.osradar.com/wp-content/uploads/2019/08/3-17-1024x234.jpeg 1024w, https://www.osradar.com/wp-content/uploads/2019/08/3-17-696x159.jpeg 696w, https://www.osradar.com/wp-content/uploads/2019/08/3-17-1068x244.jpeg 1068w" sizes="(max-width: 1168px) 100vw, 1168px" /><figcaption id="caption-attachment-13253" class="wp-caption-text">3.- Install GNUPG on Debian 10</figcaption></figure>
<p>Now, you can install the package to add the MySQL repository.</p>
<pre>:~$ sudo dpkg -i mysql-apt-config_0.8.13-1_all.deb</pre>
<p>At the time of installing the package, we will be asked to configure the available packages and repositories. The default configuration is pretty good, so just scroll down and press OK.</p>
<figure id="attachment_13254" aria-describedby="caption-attachment-13254" style="width: 1366px" class="wp-caption alignnone"><img loading="lazy" class="size-full wp-image-13254" src="https://www.osradar.com/wp-content/uploads/2019/08/4-17.jpeg" alt="4.- Adding the MySQL repository on debian 10" width="1366" height="589" srcset="https://www.osradar.com/wp-content/uploads/2019/08/4-17.jpeg 1366w, https://www.osradar.com/wp-content/uploads/2019/08/4-17-300x129.jpeg 300w, https://www.osradar.com/wp-content/uploads/2019/08/4-17-768x331.jpeg 768w, https://www.osradar.com/wp-content/uploads/2019/08/4-17-1024x442.jpeg 1024w, https://www.osradar.com/wp-content/uploads/2019/08/4-17-696x300.jpeg 696w, https://www.osradar.com/wp-content/uploads/2019/08/4-17-1068x461.jpeg 1068w, https://www.osradar.com/wp-content/uploads/2019/08/4-17-974x420.jpeg 974w" sizes="(max-width: 1366px) 100vw, 1366px" /><figcaption id="caption-attachment-13254" class="wp-caption-text">4.- Adding the MySQL repository on Debian 10</figcaption></figure>
<p>In the end, you will see a screen output similar to this one.</p>
<figure id="attachment_13255" aria-describedby="caption-attachment-13255" style="width: 971px" class="wp-caption alignnone"><img loading="lazy" class="size-full wp-image-13255" src="https://www.osradar.com/wp-content/uploads/2019/08/5-9.jpeg" alt="5.- Adding the official MySQL repository" width="971" height="168" srcset="https://www.osradar.com/wp-content/uploads/2019/08/5-9.jpeg 971w, https://www.osradar.com/wp-content/uploads/2019/08/5-9-300x52.jpeg 300w, https://www.osradar.com/wp-content/uploads/2019/08/5-9-768x133.jpeg 768w, https://www.osradar.com/wp-content/uploads/2019/08/5-9-696x120.jpeg 696w" sizes="(max-width: 971px) 100vw, 971px" /><figcaption id="caption-attachment-13255" class="wp-caption-text">5.- Adding the official MySQL repository</figcaption></figure>
<p>Now, we can install MySQL on Debian 10 by running the following commands.</p>
<pre>:~$ sudo apt update
:~$ sudo apt install mysql-server</pre>
<figure id="attachment_13256" aria-describedby="caption-attachment-13256" style="width: 1321px" class="wp-caption alignnone"><img loading="lazy" class="size-full wp-image-13256" src="https://www.osradar.com/wp-content/uploads/2019/08/6-6.jpeg" alt="6.- Install MySQL on Debian 10" width="1321" height="262" srcset="https://www.osradar.com/wp-content/uploads/2019/08/6-6.jpeg 1321w, https://www.osradar.com/wp-content/uploads/2019/08/6-6-300x60.jpeg 300w, https://www.osradar.com/wp-content/uploads/2019/08/6-6-768x152.jpeg 768w, https://www.osradar.com/wp-content/uploads/2019/08/6-6-1024x203.jpeg 1024w, https://www.osradar.com/wp-content/uploads/2019/08/6-6-696x138.jpeg 696w, https://www.osradar.com/wp-content/uploads/2019/08/6-6-1068x212.jpeg 1068w" sizes="(max-width: 1321px) 100vw, 1321px" /><figcaption id="caption-attachment-13256" class="wp-caption-text">6.- Install MySQL on Debian 10</figcaption></figure>
<p>When the installation is finished, we will be asked for the new root user key. It should be strong and not shared.</p>
<figure id="attachment_13257" aria-describedby="caption-attachment-13257" style="width: 1340px" class="wp-caption alignnone"><img loading="lazy" class="size-full wp-image-13257" src="https://www.osradar.com/wp-content/uploads/2019/08/7-2.jpeg" alt="7.- Set the new root user password" width="1340" height="560" srcset="https://www.osradar.com/wp-content/uploads/2019/08/7-2.jpeg 1340w, https://www.osradar.com/wp-content/uploads/2019/08/7-2-300x125.jpeg 300w, https://www.osradar.com/wp-content/uploads/2019/08/7-2-768x321.jpeg 768w, https://www.osradar.com/wp-content/uploads/2019/08/7-2-1024x428.jpeg 1024w, https://www.osradar.com/wp-content/uploads/2019/08/7-2-696x291.jpeg 696w, https://www.osradar.com/wp-content/uploads/2019/08/7-2-1068x446.jpeg 1068w, https://www.osradar.com/wp-content/uploads/2019/08/7-2-1005x420.jpeg 1005w" sizes="(max-width: 1340px) 100vw, 1340px" /><figcaption id="caption-attachment-13257" class="wp-caption-text">7.- Set the new root user password</figcaption></figure>
<p>Next, select the default authentication plugin:</p>
<figure id="attachment_13258" aria-describedby="caption-attachment-13258" style="width: 1366px" class="wp-caption alignnone"><img loading="lazy" class="size-full wp-image-13258" src="https://www.osradar.com/wp-content/uploads/2019/08/8-1.jpeg" alt="8.- Configuring the plugin" width="1366" height="585" srcset="https://www.osradar.com/wp-content/uploads/2019/08/8-1.jpeg 1366w, https://www.osradar.com/wp-content/uploads/2019/08/8-1-300x128.jpeg 300w, https://www.osradar.com/wp-content/uploads/2019/08/8-1-768x329.jpeg 768w, https://www.osradar.com/wp-content/uploads/2019/08/8-1-1024x439.jpeg 1024w, https://www.osradar.com/wp-content/uploads/2019/08/8-1-696x298.jpeg 696w, https://www.osradar.com/wp-content/uploads/2019/08/8-1-1068x457.jpeg 1068w, https://www.osradar.com/wp-content/uploads/2019/08/8-1-981x420.jpeg 981w" sizes="(max-width: 1366px) 100vw, 1366px" /><figcaption id="caption-attachment-13258" class="wp-caption-text">8.- Configuring the plugin</figcaption></figure>
<p>Now, you can secure the new installation using the <code>mysql_secure_installation script</code>.</p>
<figure id="attachment_13259" aria-describedby="caption-attachment-13259" style="width: 1366px" class="wp-caption alignnone"><img loading="lazy" class="size-full wp-image-13259" src="https://www.osradar.com/wp-content/uploads/2019/08/9.jpeg" alt="9.- Using the mysql_secure_installation script" width="1366" height="706" srcset="https://www.osradar.com/wp-content/uploads/2019/08/9.jpeg 1366w, https://www.osradar.com/wp-content/uploads/2019/08/9-300x155.jpeg 300w, https://www.osradar.com/wp-content/uploads/2019/08/9-768x397.jpeg 768w, https://www.osradar.com/wp-content/uploads/2019/08/9-1024x529.jpeg 1024w, https://www.osradar.com/wp-content/uploads/2019/08/9-696x360.jpeg 696w, https://www.osradar.com/wp-content/uploads/2019/08/9-1068x552.jpeg 1068w, https://www.osradar.com/wp-content/uploads/2019/08/9-813x420.jpeg 813w" sizes="(max-width: 1366px) 100vw, 1366px" /><figcaption id="caption-attachment-13259" class="wp-caption-text">9.- Using the mysql_secure_installation script</figcaption></figure>
<p>As you can see in the image, there you will be asked some questions that will help to configure the new installation. This way, you can have a more secure instance.</p>
<p>So, MySQL is ready to work. You can check the current version.</p>
<pre>:~$ mysql --version</pre>
<figure id="attachment_13260" aria-describedby="caption-attachment-13260" style="width: 633px" class="wp-caption alignnone"><img loading="lazy" class="size-full wp-image-13260" src="https://www.osradar.com/wp-content/uploads/2019/08/10.jpeg" alt="10.- MySQL version" width="633" height="101" srcset="https://www.osradar.com/wp-content/uploads/2019/08/10.jpeg 633w, https://www.osradar.com/wp-content/uploads/2019/08/10-300x48.jpeg 300w" sizes="(max-width: 633px) 100vw, 633px" /><figcaption id="caption-attachment-13260" class="wp-caption-text">10.- MySQL version</figcaption></figure>
<p>So, enjoy it.</p>
<h2>Conclusion</h2>
<p>Despite having one of the largest repositories in all of Linux, Debian does not have MySQL by default. However, in this post, I have shown you how to install it without problems. All thanks to the official MySQL repository for Debian 10.</p>
<p>Please share this post with your friends and join <a href="https://t.me/osradar">our Telegram channel</a>.</p>
<p>The post <a rel="nofollow" href="https://www.osradar.com/install-mysql-on-debian-10/">How to install MySQL on Debian 10?</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-mysql-on-debian-10/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
	</channel>
</rss>
