Ubuntu 26.04 includes MySQL 8.4 in its default APT repository with no third-party sources required. This guide covers installation, service configuration, security hardening with mysql_secure_installation , and creating a database with a scoped user ready for application use. Install MySQL MySQL 8.4 is available directly from Ubuntu 26.04's default APT repository. 1. Update the APT package index: $ sudo apt update Enter fullscreen mode Exit fullscreen mode 2. Install the MySQL server package: $ sudo apt install mysql-server -y Enter fullscreen mode Exit fullscreen mode 3. Verify the installed version: $ mysql --version Enter fullscreen mode Exit fullscreen mode Manage the MySQL Service Enable MySQL as a systemd service so it starts automatically on every boot. 1. Enable and start the service: $ sudo systemctl enable mysql $ sudo systemctl start mysql Enter fullscreen mode Exit fullscreen mode 2. Check the service status: $ sudo systemctl status mysql Enter fullscreen mode Exit fullscreen mode 3.…