<?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>MySQL 8.0 installation Archives - Linux Windows and android Tutorials</title>
	<atom:link href="https://www.osradar.com/tag/mysql-8-0-installation/feed/" rel="self" type="application/rss+xml" />
	<link>https://www.osradar.com</link>
	<description>tutorials and news and Seurity</description>
	<lastBuildDate>Wed, 02 Dec 2020 21:07:30 +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 8.0 On Ubuntu 20.04</title>
		<link>https://www.osradar.com/how-to-install-mysql-8-0-on-ubuntu-20-04/</link>
					<comments>https://www.osradar.com/how-to-install-mysql-8-0-on-ubuntu-20-04/#respond</comments>
		
		<dc:creator><![CDATA[sabi]]></dc:creator>
		<pubDate>Wed, 02 Dec 2020 21:07:28 +0000</pubDate>
				<category><![CDATA[Databases]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Servers]]></category>
		<category><![CDATA[Technology]]></category>
		<category><![CDATA[Tools]]></category>
		<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[Focal Fossa]]></category>
		<category><![CDATA[how to tutorials]]></category>
		<category><![CDATA[Install MySQL 8.0 On Ubuntu 20.04]]></category>
		<category><![CDATA[MySQL 8.0 installation]]></category>
		<category><![CDATA[MySQL installation guide]]></category>
		<category><![CDATA[ubuntu 20.04]]></category>
		<guid isPermaLink="false">https://www.osradar.com/?p=24928</guid>

					<description><![CDATA[<p>Today we are going to learn that how to Install MySQL 8.0 on Ubuntu 20.04. MySQL is one of the most popular and commonly used Database Management System. Simply follow the below steps for an easy and optimal installation of MySQL 8.0 on Ubuntu 20.04. Step 1: Update Your System Hit the below command to [&#8230;]</p>
<p>The post <a rel="nofollow" href="https://www.osradar.com/how-to-install-mysql-8-0-on-ubuntu-20-04/">How To Install MySQL 8.0 On Ubuntu 20.04</a> appeared first on <a rel="nofollow" href="https://www.osradar.com">Linux  Windows and android  Tutorials</a>.</p>
]]></description>
										<content:encoded><![CDATA[
<p>Today we are going to learn that <a href="https://www.osradar.com/?p=24928" target="_blank" rel="noreferrer noopener">how to Install MySQL 8.0 on Ubuntu 20.04</a>. MySQL is one of the most popular and commonly used Database Management System. Simply follow the below steps for an easy and optimal installation of MySQL 8.0 on Ubuntu 20.04.</p>



<h2>Step 1: Update Your System</h2>



<p>Hit the below command to get the latest packages installed.</p>



<pre class="wp-block-preformatted">sudo apt update -y</pre>



<h3>Step 2: Add MySQL Repository in Ubuntu 20.04</h3>



<p>Ubuntu already have the default MySQL repository but in our case we&#8217;ll add the repository (latest) to install the MySQL. So, type the follwoing command in your terminal.</p>



<pre class="wp-block-preformatted">wget https://dev.mysql.com/get/mysql-apt-config_0.8.12-1_all.deb</pre>



<p>When the download finished, install the repository with the help of below command</p>



<pre class="wp-block-preformatted">sudo dpkg -i mysql-apt-config_0.8.12-1_all.deb</pre>



<p>You&#8217;ll be prompted, select the <strong>Ubuntu Bionic</strong> &amp; then click <strong>&#8220;Ok&#8221;</strong>.</p>



<figure class="wp-block-image size-large"><img loading="lazy" width="787" height="513" src="//1081754738.rsc.cdn77.org/wp-content/uploads/2020/10/image-1.png" alt="How To Install MySQL 8.0 On Ubuntu 20.04" class="wp-image-24930" srcset="https://www.osradar.com/wp-content/uploads/2020/10/image-1.png 787w, https://www.osradar.com/wp-content/uploads/2020/10/image-1-300x196.png 300w, https://www.osradar.com/wp-content/uploads/2020/10/image-1-768x501.png 768w, https://www.osradar.com/wp-content/uploads/2020/10/image-1-696x454.png 696w" sizes="(max-width: 787px) 100vw, 787px" /></figure>



<p>In the next prompt, choose <strong>MySQL 8.0 Server</strong> (mostly it is selected by default) and then click <strong>&#8220;OK&#8221;</strong>.</p>



<figure class="wp-block-image size-large"><img loading="lazy" width="780" height="523" src="//1081754738.rsc.cdn77.org/wp-content/uploads/2020/10/image-2.png" alt="How To Install MySQL 8.0 On Ubuntu 20.04" class="wp-image-24932" srcset="https://www.osradar.com/wp-content/uploads/2020/10/image-2.png 780w, https://www.osradar.com/wp-content/uploads/2020/10/image-2-300x201.png 300w, https://www.osradar.com/wp-content/uploads/2020/10/image-2-768x515.png 768w, https://www.osradar.com/wp-content/uploads/2020/10/image-2-696x467.png 696w" sizes="(max-width: 780px) 100vw, 780px" /></figure>



<p>Then in next prompt, choose <strong>MySQL 8.0 Version</strong> and click <strong>&#8220;OK&#8221;</strong>.</p>



<figure class="wp-block-image size-large"><img loading="lazy" width="780" height="520" src="//1081754738.rsc.cdn77.org/wp-content/uploads/2020/10/image-3.png" alt="How To Install MySQL 8.0 On Ubuntu 20.04" class="wp-image-24933" srcset="https://www.osradar.com/wp-content/uploads/2020/10/image-3.png 780w, https://www.osradar.com/wp-content/uploads/2020/10/image-3-300x200.png 300w, https://www.osradar.com/wp-content/uploads/2020/10/image-3-768x512.png 768w, https://www.osradar.com/wp-content/uploads/2020/10/image-3-696x464.png 696w" sizes="(max-width: 780px) 100vw, 780px" /></figure>



<p>In next step MySQL will be selected by default. Choose the last option <strong>OK </strong> and then click <strong>&#8220;OK</strong>&#8220;.</p>



<h2>Step 3: Update MySQL Repository on Ubuntu 20.04</h2>



<p>Fire the below command to get the latest repositories packages installed.</p>



<pre class="wp-block-preformatted">sudo apt-get update</pre>



<p>And then search for the MySQL 8.0 with the help of apt cache command as shown below:</p>



<pre class="wp-block-preformatted">sabi@Ubuntu20:~$ <strong>sudo apt-cache policy mysql-server</strong>
mysql-server:
Installed: (none)
Candidate: 8.0.22-1ubuntu18.04
Version table:
8.0.22-1ubuntu18.04 500
500 http://repo.mysql.com/apt/ubuntu bionic/mysql-8.0 amd64 Packages
8.0.22-0ubuntu0.20.04.2 500
500 http://pk.archive.ubuntu.com/ubuntu focal-updates/main amd64 Packages
500 http://pk.archive.ubuntu.com/ubuntu focal-updates/main i386 Packages
500 http://security.ubuntu.com/ubuntu focal-security/main amd64 Packages
500 http://security.ubuntu.com/ubuntu focal-security/main i386 Packages
8.0.19-0ubuntu5 500
500 http://pk.archive.ubuntu.com/ubuntu focal/main amd64 Packages
500 http://pk.archive.ubuntu.com/ubuntu focal/main i386 Packages</pre>



<h3>Step 4: Install MySQL on Ubuntu 20.04</h3>



<p>As we&#8217;ve seen above the MySQL 8.0 is listed in our Ubuntu 20.04 system, so install it by typing the below command in terminal. Press <strong>&#8220;Y&#8221; </strong>when prompted to continue.</p>



<pre class="wp-block-preformatted">sabi@Ubuntu20:~$ <strong>sudo apt install mysql-server</strong>
Reading package lists… Done
Building dependency tree
Reading state information… Done
The following packages were automatically installed and are no longer required:
apache2-data apache2-utils galera-3 libcgi-fast-perl libcgi-pm-perl libconfig-inifiles-perl
libdbd-mysql-perl libdbi-perl libfcgi-perl libfprint-2-tod1 libhtml-template-perl
libnginx-mod-http-image-filter libnginx-mod-http-xslt-filter libnginx-mod-mail libnginx-mod-stream
libreadline5 libsnappy1v5 libterm-readkey-perl mariadb-common nginx-common nginx-core socat
Use 'sudo apt autoremove' to remove them.
The following additional packages will be installed:
libmecab2 libtinfo5 mecab-ipadic mecab-ipadic-utf8 mecab-utils mysql-client mysql-common
mysql-community-client mysql-community-client-core mysql-community-client-plugins mysql-community-server
mysql-community-server-core
The following packages will be REMOVED:
mariadb-client mariadb-client-10.3 mariadb-client-core-10.3 mariadb-server mariadb-server-10.3
mariadb-server-core-10.3
The following NEW packages will be installed:
libmecab2 libtinfo5 mecab-ipadic mecab-ipadic-utf8 mecab-utils mysql-client mysql-community-client
mysql-community-client-core mysql-community-client-plugins mysql-community-server
mysql-community-server-core mysql-server
The following packages will be upgraded:
mysql-common
1 upgraded, 12 newly installed, 6 to remove and 5 not upgraded.
Need to get 31.1 MB of archives.
After this operation, 96.8 MB of additional disk space will be used.
Do you want to continue? [Y/n] <strong>y</strong></pre>



<p>Provide the root password when prompted to continue. Re-enter to verify the password.</p>



<figure class="wp-block-image size-large"><img loading="lazy" width="999" height="514" src="//1081754738.rsc.cdn77.org/wp-content/uploads/2020/10/image-4.png" alt="" class="wp-image-24941" srcset="https://www.osradar.com/wp-content/uploads/2020/10/image-4.png 999w, https://www.osradar.com/wp-content/uploads/2020/10/image-4-300x154.png 300w, https://www.osradar.com/wp-content/uploads/2020/10/image-4-768x395.png 768w, https://www.osradar.com/wp-content/uploads/2020/10/image-4-696x358.png 696w" sizes="(max-width: 999px) 100vw, 999px" /></figure>



<p>Use the strong password encryption as recommended by MySQL.</p>



<h3>Step 5: MySQL Secure Installation</h3>



<p>For security reasons, to secure the installation type</p>



<pre class="wp-block-preformatted">sabi@Ubuntu20:~$<strong>sudo mysql secure_installation</strong>
Enter current password for root (enter for none):
VALIDATE PASSWORD PLUGIN can be used to test passwords
and improve security. It checks the strength of password
and allows the users to set only those passwords which are
secure enough. Would you like to setup VALIDATE PASSWORD plugin?
Press y|Y for Yes, any other key for No: Y
There are three levels of password validation policy:
LOW Length &gt;= 8
MEDIUM Length &gt;= 8, numeric, mixed case, and special characters
STRONG Length &gt;= 8, numeric, mixed case, special characters and dictionary file
Please enter 0 = LOW, 1 = MEDIUM and 2 = STRONG: 1
Using existing password for root.
Estimated strength of the password: 25
Change the password for root ? ((Press y|Y for Yes, any other key for No) : d
Remove anonymous users? [Y/n] Y
Disallow root login remotely? [Y/n] Y
Remove test database and access to it? [Y/n] Y
Reload privilege tables now? [Y/n] Y</pre>



<p>Then Press <strong>&#8220;Enter</strong>&#8220;. When prompts for root password, provide the root password.</p>



<p>Verify the MySQL version with the help of below command after login to the MySQL.</p>



<pre class="wp-block-preformatted">sudo mysql -u root -p
SELECT VERSION()
| VERSION() |
+-----------+
| 8.0.21 |
+-----------+
1 row in set (0.00 sec)</pre>



<h3>Step 6: Enable MySQL Remote Access (Optional)</h3>



<p>By default remote access for MySQL is disabled, you can enable it if you needed by editing the below file.</p>



<pre class="wp-block-preformatted">sudo nano /etc/mysql/mysql.conf.d/mysqld.cnf</pre>



<p>Here search for the line <strong>&#8220;bind_address&#8221;</strong> &amp; do the changes as shown below:</p>



<pre class="wp-block-preformatted">#By default we only accept connections from localhost
bind-address = 127.0.0.1
bind-address = 0.0.0.0</pre>



<p>Then save and exit the file.</p>



<p>And restart mysql</p>



<pre class="wp-block-preformatted">sudo systemctl restart mysql</pre>



<p>And allow the remote connections through the firewall.</p>



<pre class="wp-block-preformatted">sudo ufw allow from to any port 3306<br>sudo ufw enable</pre>



<p>To access the database from remote system, type</p>



<pre class="wp-block-preformatted">mysql -u user -h database_server_ip -p</pre>



<p id="block-20b0cd0f-dff0-4c67-92a6-f277c6794664">So, this is how you can install MySQL 8.0 on Ubuntu 20.04</p>
<p>The post <a rel="nofollow" href="https://www.osradar.com/how-to-install-mysql-8-0-on-ubuntu-20-04/">How To Install MySQL 8.0 On Ubuntu 20.04</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/how-to-install-mysql-8-0-on-ubuntu-20-04/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
	</channel>
</rss>
