<?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>mariadb installation on ubuntu 20.04 Archives - Linux Windows and android Tutorials</title>
	<atom:link href="https://www.osradar.com/tag/mariadb-installation-on-ubuntu-20-04/feed/" rel="self" type="application/rss+xml" />
	<link>https://www.osradar.com</link>
	<description>tutorials and news and Seurity</description>
	<lastBuildDate>Wed, 29 Apr 2020 18:06:58 +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 MariaDB on Ubuntu 20.04</title>
		<link>https://www.osradar.com/how-to-install-mariadb-on-ubuntu-20-04/</link>
					<comments>https://www.osradar.com/how-to-install-mariadb-on-ubuntu-20-04/#respond</comments>
		
		<dc:creator><![CDATA[sabi]]></dc:creator>
		<pubDate>Wed, 29 Apr 2020 18:06:56 +0000</pubDate>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Programming]]></category>
		<category><![CDATA[Servers]]></category>
		<category><![CDATA[Technology]]></category>
		<category><![CDATA[Tools]]></category>
		<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[focal fossa mariadb installation]]></category>
		<category><![CDATA[how to install mariadb on focal fossa]]></category>
		<category><![CDATA[How To Install MariaDB on Ubuntu 20.04]]></category>
		<category><![CDATA[install mariadb on ubuntu]]></category>
		<category><![CDATA[mariadb installation on ubuntu 20.04]]></category>
		<guid isPermaLink="false">https://www.osradar.com/?p=19876</guid>

					<description><![CDATA[<p>Today we are going to learn that how to Install MariaDB on Ubuntu 20.04 (Focal Fossa). As you all know that Ubuntu 20.04 LTS is now available officially so we brings some topics to help you easily install them on your new upgraded system. Follow the below steps for an easy installation of MariaDB on [&#8230;]</p>
<p>The post <a rel="nofollow" href="https://www.osradar.com/how-to-install-mariadb-on-ubuntu-20-04/">How To Install MariaDB 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=19876"> how to Install MariaDB on Ubuntu 20.04</a> (Focal Fossa). As you all know that Ubuntu 20.04 LTS is now available officially so we brings some topics to help you easily install them on your new upgraded system. Follow the below steps for an easy installation of MariaDB on Ubuntu 20.04.</p>



<h3><strong>Step 1: Update Your System</strong></h3>



<p>As usual we do, first of all update your system.</p>



<pre class="wp-block-verse">sudo apt update &amp;&amp; sudo apt upgrade</pre>



<p>Also install the software properties common package by the below command</p>



<pre class="wp-block-verse">sudo apt -y install software-properties-common</pre>



<h3><strong>Step 2: Importing MariaDB GPG Key</strong></h3>



<p>Fire the below command in your terminal to import the MariaDB GPG key into your Ubuntu 20.04 system.</p>



<pre class="wp-block-verse">sudo apt-key adv --fetch-keys 'https://mariadb.org/mariadb_release_signing_key.asc'</pre>



<h3><strong>Step 3: Add the MariaDB Repository on Ubuntu 20.04</strong></h3>



<p>Now add the MariaDB repository on Ubuntu 20.04 by the below command.</p>



<pre class="wp-block-verse">sudo add-apt-repository 'deb [arch=amd64] http://mariadb.mirror.globo.tech/repo/10.5/ubuntu focal main'</pre>



<p>Output: </p>



<p>You&#8217;ll see the similar output.</p>



<pre class="wp-block-verse">sudo add-apt-repository 'deb [arch=amd64] http://mariadb.mirror.globo.tech/repo/10.5/ubuntu focal main'<br> Hit:1 http://pk.archive.ubuntu.com/ubuntu focal InRelease<br> Hit:2 http://pk.archive.ubuntu.com/ubuntu focal-updates InRelease<br> Hit:3 http://pk.archive.ubuntu.com/ubuntu focal-backports InRelease<br> Hit:4 http://security.ubuntu.com/ubuntu focal-security InRelease<br> Get:5 http://mariadb.mirror.globo.tech/repo/10.5/ubuntu focal InRelease [3,202 B]<br> Get:6 http://mariadb.mirror.globo.tech/repo/10.5/ubuntu focal/main amd64 Packages [7,924 B]<br> Fetched 11.1 kB in 10s (1,163 B/s)    <br> Reading package lists… Done</pre>



<h3><strong>Step 4: Install MariaDB Server on Ubuntu 20.04</strong></h3>



<p>Once you finished doing the above steps, go for the last step that is to finalize the installation process of MariaDB Server on Ubuntu 20.04. Type the given command in terminal.</p>



<pre class="wp-block-verse">sudo apt update<br>sudo apt install mariadb-server mariadb-client</pre>



<p>Then press <strong>Y </strong>when prompted.</p>



<pre class="wp-block-verse">Use 'sudo apt autoremove' to remove them.<br> The following additional packages will be installed:<br>   galera-4 gawk libaio1 libdbd-mariadb-perl libdbi-perl<br>   libhtml-template-perl libmariadb3 libreadline5 libterm-readkey-perl<br>   mariadb-client-10.5 mariadb-client-core-10.5 mariadb-common<br>   mariadb-server-10.5 mariadb-server-core-10.5 socat<br> Suggested packages:<br>   gawk-doc libmldbm-perl libnet-daemon-perl libsql-statement-perl<br>   libipc-sharedcache-perl mailx mariadb-test tinyca<br> The following NEW packages will be installed:<br>   galera-4 gawk libaio1 libdbd-mariadb-perl libdbi-perl<br>   libhtml-template-perl libmariadb3 libreadline5 libterm-readkey-perl<br>   mariadb-client mariadb-client-10.5 mariadb-client-core-10.5<br>   mariadb-common mariadb-server mariadb-server-10.5<br>   mariadb-server-core-10.5 socat<br> 0 upgraded, 17 newly installed, 0 to remove and 1 not upgraded.<br> Need to get 28.2 MB of archives.<br> After this operation, 222 MB of additional disk space will be used.<br> Do you want to continue? [Y/n] </pre>



<h3><strong>Step 5: Securing MariaDB on Ubuntu 20.04</strong></h3>



<p>As there are by default settings so for security reasons we&#8217;ve to update the settings so that we are not open to vulnerabilities. To do this secure the MariaDB installation on Ubuntu 20.04 with the help of below command.</p>



<pre class="wp-block-verse">sudo mysql_secure_installation</pre>



<p>You&#8217;ll see the similar output.</p>



<pre class="wp-block-verse">sabi@Ubuntu-20:~$ sudo mysql_secure_installation<br> [sudo] password for sabi: <br> NOTE: RUNNING ALL PARTS OF THIS SCRIPT IS RECOMMENDED FOR ALL MariaDB<br>       SERVERS IN PRODUCTION USE!  PLEASE READ EACH STEP CAREFULLY!<br> In order to log into MariaDB to secure it, we'll need the current<br> password for the root user. If you've just installed MariaDB, and<br> haven't set the root password yet, you should just press enter here.<br> Enter current password for root (enter for none): <br> OK, successfully used password, moving on…<br> Setting the root password or using the unix_socket ensures that nobody<br> can log into the MariaDB root user without the proper authorisation.<br> You already have your root account protected, so you can safely answer 'n'.<br> Switch to unix_socket authentication [Y/n] <strong>N</strong><br>  … skipping.<br> You already have your root account protected, so you can safely answer 'n'.<br> Change the root password? [Y/n] <strong>Y</strong><br> New password: <br> Re-enter new password: <br> Password updated successfully!<br> Reloading privilege tables..<br>  … Success!<br> By default, a MariaDB installation has an anonymous user, allowing anyone<br> to log into MariaDB without having to have a user account created for<br> them.  This is intended only for testing, and to make the installation<br> go a bit smoother.  You should remove them before moving into a<br> production environment.<br> Remove anonymous users? [Y/n]<strong> y</strong><br>  … Success!<br> Normally, root should only be allowed to connect from 'localhost'.  This<br> ensures that someone cannot guess at the root password from the network.<br> Disallow root login remotely? [Y/n] <strong>y</strong><br>  … Success!<br> By default, MariaDB comes with a database named 'test' that anyone can<br> access.  This is also intended only for testing, and should be removed<br> before moving into a production environment.<br> Remove test database and access to it? [Y/n] <strong>y</strong><br> Dropping test database…<br> … Success!<br> Removing privileges on test database…<br> … Success! <br> Reloading the privilege tables will ensure that all changes made so far<br> will take effect immediately.<br> Reload privilege tables now? [Y/n] <strong>y</strong><br>  … Success!<br> Cleaning up…<br> All done!  If you've completed all of the above steps, your MariaDB<br> installation should now be secure.<br> Thanks for using MariaDB!</pre>



<p>Make sure to check the MariaDB Server status as it will start automatically after completing the installation. Run the below command to see the status of MariaDB on Ubuntu 20.04.</p>



<pre class="wp-block-verse">systemctl status mysql</pre>



<figure class="wp-block-image size-large"><img loading="lazy" width="721" height="568" src="//1723336065.rsc.cdn77.org/wp-content/uploads/2020/04/sss.png" alt="How To Install MariaDB on Ubuntu 20.04" class="wp-image-19952" srcset="https://www.osradar.com/wp-content/uploads/2020/04/sss.png 721w, https://www.osradar.com/wp-content/uploads/2020/04/sss-300x236.png 300w, https://www.osradar.com/wp-content/uploads/2020/04/sss-696x548.png 696w" sizes="(max-width: 721px) 100vw, 721px" /></figure>



<p>After it test the login by providing the above details configured in the above step.</p>



<pre class="wp-block-verse">sabi@Ubuntu-20:~$ <strong>mysql -u root -p</strong><br> Enter password: <br> Welcome to the MariaDB monitor.  Commands end with ; or \g.<br> Your MariaDB connection id is 51<br> Server version: 10.5.2-MariaDB-1:10.5.2+maria~focal mariadb.org binary distribution<br> Copyright (c) 2000, 2018, Oracle, MariaDB Corporation Ab and others.<br> Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.<br> MariaDB [(none)]> </pre>



<p>So, this is how you can install MariaDB on your Ubuntu 20.04. If you&#8217;ve any queries, feel free to ask. To show your support towards us simply do share our posts and always look for new and interesting content from us.</p>
<p>The post <a rel="nofollow" href="https://www.osradar.com/how-to-install-mariadb-on-ubuntu-20-04/">How To Install MariaDB 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-mariadb-on-ubuntu-20-04/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
	</channel>
</rss>
