โ† Back to list

๐Ÿš€ Installing MySQL Server and Workbench on Ubuntu 24.04

In this guide, weโ€™ll install MySQL Server 8.0 and MySQL Workbench on Ubuntu 24.04. This setup is useful if youโ€™re developing apps locallyโ€ฆ

Muhammad Anwar ยท 2025-09-26 10:55 ยท 1 claps ยท 1.1 min read
#mysql #mysql-server #mysql-workbench #ubunutu #installation
Open on Medium โ†—
Wiki topics: ๐Ÿ”“ ยท Open Source

๐Ÿš€ Installing MySQL Server and Workbench on Ubuntu 24.04

In this guide, weโ€™ll install MySQL Server 8.0 and MySQL Workbench on Ubuntu 24.04. This setup is useful if youโ€™re developing apps locally or managing databases directly on your server.

๐Ÿ”น Step 1: Update and Upgrade Packages

Always refresh your system before installing:

sudo apt update
sudo apt upgrade -y

๐Ÿ”น Step 2: Install MySQL Server

sudo apt install mysql-server -y

Check the installation:

sudo mysql -v

๐Ÿ”น Step 3: Secure the Installation

Run the security script:

sudo mysql_secure_installation

When prompted, typical answers are:

Validate Password Component?  Y
Password Policy: 0 (LOW)
Remove anonymous users?      Y
Disallow root login remotely? Y
Remove test database?        Y
Reload privilege tables now? Y

๐Ÿ”น Step 4: Set Root Password

Login to MySQL:

sudo mysql

Change the root password:

ALTER USER 'root'@'localhost' IDENTIFIED WITH mysql_native_password BY 'your_new_password';

Exit MySQL, then log in with your new password:

mysql -u root -p

๐Ÿ”น Step 5: Verify Ubuntu Version

lsb_release -d

๐Ÿ”น Step 6: Install MySQL Workbench

Download the .deb package from the official site: ๐Ÿ‘‰ MySQL Workbench Downloads

Or via wget:

wget https://dev.mysql.com/get/Downloads/MySQLGUITools/mysql-workbench-community_8.0.43-1ubuntu24.04_amd64.deb

Check your directory:

ls

Install the package:

sudo dpkg -i mysql-workbench-community_8.0.43-1ubuntu24.04_amd64.deb

If you get dependency errors, fix them:

sudo apt --fix-broken install

Sometimes you may also need extra libraries:

sudo apt install libproj-dev proj-bin -y

๐Ÿ”น Step 7: Verify Installation

Check MySQL Server version:

mysql --version

Check MySQL Workbench version:

mysql-workbench --version

โœ… Conclusion

You now have both MySQL Server 8.0 and MySQL Workbench installed on Ubuntu 24.04. Use the mysql CLI for server-side management, and Workbench (GUI) on your desktop for a friendlier interface.


๋ฉ”ํƒ€๋ฐ์ดํ„ฐ
post_id
0c00f4b4c537
slug
installing-mysql-server-and-workbench-on-ubuntu-24-04-0c00f4b4c537
url
https://medium.com/@i211232/installing-mysql-server-and-workbench-on-ubuntu-24-04-0c00f4b4c537
canonical_url
https://medium.com/@i211232/installing-mysql-server-and-workbench-on-ubuntu-24-04-0c00f4b4c537
author_url
https://medium.com/@i211232
status
ok
fetched_at
2026-06-20 20:29:01