Menu

Post image 1
Post image 2
1 / 2
0

Installing MySQL on Ubuntu 26.04

DEV Community·Sanskriti Harmukh·28 days ago
#0TWJZ8gv
#create#database#mysql#ubuntu#fullscreen#exit
Reading 0:00
15s threshold

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.…

Continue reading — create a free account

Join HashtagPLUS to read full articles, follow hashtags, vote, and join the conversation.

Read More