Deployment Overview of MySQL on Server¶
Prerequisites and Basic Requirements¶
To ensure a successful deployment, the server must meet the following requirements:
-
Operating System:
-
Ubuntu or Debian-based distributions.
-
RHEL-based distributions (CentOS, Rocky Linux, or AlmaLinux).
-
Privileges: Root or sudo access is required to install packages and manage services.
-
Network Requirements: Access to package repositories via the internet must be available.
Application installation process¶
The application is installed using the native package manager of the operating system to ensure optimal performance and stability. The specific method depends on the detected distribution:
For Ubuntu/Debian systems:
-
The package repository cache is updated.
-
The
mariadb-serverpackage is installed along with utility tools includingnano,vim,htop,net-tools, anddnsutils. -
The MariaDB service is started and configured to launch automatically upon system boot.
For RHEL/CentOS/Rocky/AlmaLinux systems:
-
The
mysql-serverpackage is installed along with utility tools includingnano,vim,net-tools, andbind-utils. -
The MySQL service is started and configured to launch automatically upon system boot.
Access Rights and Security¶
Security configurations are applied via the system firewall to restrict access to the database engine:
-
Firewall Management:
-
On RHEL-based systems, the firewall is configured to allow incoming traffic on TCP port
3306in thepubliczone. -
The configuration is set as permanent to ensure rules persist after a reboot.
Databases¶
The deployment installs a database management system (MariaDB or MySQL) directly on the host operating system.
| Feature | Details |
|---|---|
| Service Name (Ubuntu/Debian) | mariadb.service |
| Service Name (RHEL-based) | mysqld |
| Default Port | 3306 |
| Storage Location | Standard system database directories (e.g., /var/lib/mysql) |
Available ports for connection¶
The following port is opened for database connectivity:
3306/tcp: Database service access.