ITNuvoAkademiya
Academy homePackagesPlaylistsToolsSubnet calculatorSearchGlossary
CiscoCCNA · CCNA: networking fundamentals1. Introduction2. Network Fundamentals3. Network Access4. IP Connectivity5. IP Services6. IPv67. Security Fundamentals8. AutomationCCNP: Enterprise networks · coming soon
LinuxLinux: system administrator üçün · Linux for system administrators1. Getting to know Linux2. Working with text3. Users and permissions4. Processes and packages5. Inside the system6. Monitoring and logs7. NetworkingRed Hat Enterprise Linux · Red Hat Enterprise Linux: from beginner to advanced1. Getting started2. Packages3. Users and permissions4. SELinux5. Services6. Storage7. Networking8. Building services9. Boot and recovery10. DevOps11. Security and monitoring
FortinetFortiGate Administrator · FortiGate Administrator: from first login to ZTNA1. Getting to know FortiGate2. Routing, policy and NAT3. Security profiles4. Users and logs5. Resilience, SD-WAN and automation6. VDOM7. VPN and ZTNA8. Proxy9. DMZ
MonitoringZabbix · Zabbix: from installation to alerts1. Introduction2. Installation and the database3. Basics: groups, templates, users4. Connecting devices5. Alerts, Grafana and the API
VirtualizationProxmox VE · coming soonVMware ESXi · coming soon
My account / Sign in
AZENRU
← itnuvo.com

Databases: installing MariaDB and creating a user

Lesson 8.29 minAdvancedDecember 1, 2026

Sign in to read this lesson

A web application's data is kept on a separate database server. In this lesson we build MariaDB on srv-db01, secure it with mysql_secure_installation, create a user for the application with rights only to its own database, and open the network connection from the web server together with firewalld and SELinux.

What you will learn

  • dnf install mariadb-server, systemctl enable --now mariadb, then always mysql_secure_installation.
  • A separate database and user for the application: CREATE USER 'shop'@'10.20.0.15' IDENTIFIED BY '...'; GRANT ALL ON shopdb.* TO ....
  • A user is a name@host pair: 'shop'@'10.20.0.15' can connect only from the web server.
  • Network: firewall-cmd --add-service=mysql (or a rich rule for the web server only); on the web side, SELinux: setsebool -P httpd_can_network_connect_db on.
  • Backup: mysqldump --single-transaction shopdb > shopdb.sql; restore: mysql shopdb < shopdb.sql.

The lesson has 5 key points, an explanation and 5 questions. It opens with a package.