top ad article

On this tutorial, we are going to look at how to install MariaDB Server 10.5 on Deepin Linux 20.x successfully. MariaDB is a free and open source relational database management system under the GNU General Public License. This database system runs on Linux, Windows, and macOS. MariaDB is famous among many people because of its reliability and good performance among many other features.

Install MariaDB Server 10.5 on Deepin Linux 20.x

The process below will guide you on how to install MariaDB Server 10.5 on Deepin Linux 20.x easily. The steps are easy to follow and understand, so stay tuned to the end of this article. Check below for the procesdure;

Step 1. Update your Deepin Linux System

Before any installation on Linux, it is important to always update your system To do so, utilize the commands as shown below;

sudo apt update
sudo apt upgrade -y

Step 2. Install MariaDB Server 10.5 on Deepin Linux 20.x

Once the update is done, you can then proceed to install MariaDB Server 10.5 on Deepin Linux 20.x using the command shown below;

sudo apt -y install mariadb-server mariadb-client

A section of the output is as follows;

[email protected]:~$ sudo apt -y install mariadb-server mariadb-client
[sudo] password for daylifetips:
Verification successful
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following additional packages will be installed:
  galera-3 libcgi-fast-perl libcgi-pm-perl libconfig-inifiles-perl
  libdbd-mysql-perl libdbi-perl libfcgi-perl libhtml-template-perl
  libterm-readkey-perl mariadb-client-10.3 mariadb-client-core-10.3
  mariadb-server-10.3 mariadb-server-core-10.3
Suggested packages:
  libclone-perl libmldbm-perl libnet-daemon-perl libsql-statement-perl
  libipc-sharedcache-perl mailx mariadb-test tinyca
The following NEW packages will be installed:
  galera-3 libcgi-fast-perl libcgi-pm-perl libconfig-inifiles-perl
  libdbd-mysql-perl libdbi-perl libfcgi-perl libhtml-template-perl
  libterm-readkey-perl mariadb-client mariadb-client-10.3
  mariadb-client-core-10.3 mariadb-server mariadb-server-10.3
  mariadb-server-core-10.3
0 upgraded, 15 newly installed, 0 to remove and 0 not upgraded.
Need to get 19.3 MB of archives.
After this operation, 163 MB of additional disk space will be used.
Get:1 https://community-packages.deepin.com/deepin apricot/main amd64 galera-3 amd64 25.3.25-2 [920 kB]
Get:2 https://community-packages.deepin.com/deepin apricot/main amd64 libdbi-perl amd64 1.642-1+deb10u2 [775 kB]
Get:3 https://community-packages.deepin.com/deepin apricot/main amd64 libconfig-inifiles-perl all 3.000001-1 [51.9 kB]
Get:4 https://community-packages.deepin.com/deepin apricot/main amd64 mariadb-client-core-10.3 amd64 1:10.3.27-0+deb10u1 [5744 kB]
Get:5 https://community-packages.deepin.com/deepin apricot/main amd64 mariadb-client-10.3 amd64 1:10.3.27-0+deb10u1 [1140 kB]
Get:6 https://community-packages.deepin.com/deepin apricot/main amd64 mariadb-server-core-10.3 amd64 1:10.3.27-0+deb10u1 [5960 kB]
Get:7 https://community-packages.deepin.com/deepin apricot/main amd64 mariadb-server-10.3 amd64 1:10.3.27-0+deb10u1 [4205 kB]
Get:8 https://community-packages.deepin.com/deepin apricot/main amd64 libcgi-pm-perl all 4.40-1 [223 kB]
Get:9 https://community-packages.deepin.com/deepin apricot/main amd64 libfcgi-perl amd64 0.78-2+b3 [39.0 kB]
Get:10 https://community-packages.deepin.com/deepin apricot/main amd64 libcgi-fast-perl all 1:2.13-1 [11.5 kB]
Get:11 https://community-packages.deepin.com/deepin apricot/main amd64 libdbd-mysql-perl amd64 4.050-2 [121 kB]
Get:12 https://community-packages.deepin.com/deepin apricot/main amd64 libhtml-template-perl all 2.97-1 [66.1 kB]
Get:13 https://community-packages.deepin.com/deepin apricot/main amd64 libterm-readkey-perl amd64 2.38-1 [27.4 kB]
Get:14 https://community-packages.deepin.com/deepin apricot/main amd64 mariadb-client all 1:10.3.27-0+deb10u1 [31.1 kB]
Get:15 https://community-packages.deepin.com/deepin apricot/main amd64 mariadb-server all 1:10.3.27-0+deb10u1 [31.3 kB]
Fetched 19.3 MB in 6s (3326 kB/s)
perl: warning: Setting locale failed.
perl: warning: Please check that your locale settings:
	LANGUAGE = "en_US",
	LC_ALL = (unset),
	LC_CTYPE = "UTF-8",
	LC_TERMINAL = "iTerm2",
	LANG = "en_US.UTF-8"
    are supported and installed on your system.

Step 3. Confirm Version of MariaDB

Once you are done with the installation, use the command below to check the version that has been installed;

[email protected]:~$ apt policy mariadb-server
mariadb-server:
  Installed: 1:10.3.27-0+deb10u1
  Candidate: 1:10.3.27-0+deb10u1
  Version table:
 *** 1:10.3.27-0+deb10u1 500
        500 https://community-packages.deepin.com/deepin apricot/main amd64 Packages
        500 https://community-packages.deepin.com/deepin apricot/main i386 Packages
        100 /usr/lib/dpkg-db/status

Check the status of MariaDB server mysql or mariadb;

Step 4. Secure MariaDB Server 10.5 on Deepen Linux

To secure your server, use the following commands to do it;

sudo mysql_secure_installation

With the command below, you are able to;

  • change/set root password
  • Remove anonymous users
  • Disallow root login remotely
  • Remove test database and access to it
  • Remove privilege tables now

You can also update authentication password as shown below;

sudo mysql -u root

The steps above covers the installation of MariaDB Server 10.5 on Deepin Linux 20.x just like that. You can now utilize the database management as you wish.

Other Posts;

Previous articleInstall Google Chrome Browser on Deepin Linux 20.x
Next articleInstall PostgreSQL Server 13 on Deepin Linux 20.x
Valentine is eager to learn new things, technology and life issues. She is curious enough to write about them. And, she uses her platform to educate others regarding the many sectors in life and most importantly technology.

LEAVE A REPLY

Please enter your comment!
Please enter your name here