Kategorie: Linux

Installation and security of the MariaDB database server on Ubuntu 22.04

The following guide describes how to install the MariaDB database server on Ubuntu 22.04

We will do the whole thing in a few minutes using the console

We start the terminal and issue commands:

We update packages and our system:

sudo apt-get update && sudo apt-get upgrade -y

The next step is to install the necessary packages:

sudo apt-get install software-properties-common dirmngr gnupg2 -y
sudo apt-get install apt-transport-https wget curl -y

We install the MariaDB server

sudo apt-get install mariadb-server -y

We add the service to the autostart:

sudo systemctl enable mariadb

We make the initial security

In the console, issue the command:

sudo mysql_secure_installation

And we answer the questions as in the screenshot:

Log in to mysqla by issuing a command:

mysql -u root -p

Create an administrative user, which uses password authentication:

We log in to MariaDB

sudo mariadb

Then create a new user with root privileges and password-based access. remember, to change the username and password according to your preferences:

GRANT ALL ON *.* TO 'admin'@'localhost' IDENTIFIED BY 'hasło' WITH GRANT OPTION;

We are overcharging the permissions:

FLUSH PRIVILEGES;

We are exiting the database console:

exit

Linux

Udostępnij
Opublikowane przez
Linux

Recent posts

KeePass2 2.52 w Ubuntu 22.04

The guide below describes how to install KeePass on Ubuntu. Całość wykonamy za pomocą kilku poleceń

2 years temu

Installing Master PDF editor in Ubuntu 22.04

Master PDF Editor is a comprehensive PDF program, which includes many features. Oprócz tworzenia i edycji

2 years temu

iotop - memory monitoring

Iotop jest prostym narzędziem dla systemów Uniksowych umożliwiającym monitorowanie użycia dowolnego nośnika pamięci flash/hdd/ssd w

2 years temu

Run multiple commands in one cron job

You can separate two or more commands with semicolons (;), Semicolon (;): służy do oddzielania

2 years temu

Changing the exif data of a photo in the Linux terminal

Poniższy poradnik opisuje w jaki sposób za pomocą konsoli możemy dokonać edycji danych zdjęcia exif.

2 years temu

Installing Rocket.Chat Server on Rocky Linux 8

The following guide describes how to install Rocket.Chat on Rocky Linux 8 Całość bardzo prosto zainstalujemy

2 years temu