---
title: Install MySQL on Linux | Snap Store
description: Get the latest version of MySQL for Linux - MySQL
url: https://snapcraft.io/mysql
---

# MySQL

[Canonical](https://snapcraft.io/publisher/canonical "View all snaps from Canonical")

* [Canonical](https://snapcraft.io/publisher/canonical "View all snaps from Canonical")
* [Server and Cloud](https://snapcraft.io/search?categories=server-and-cloud)

8.4/stable 8.4.10

Install 8.4/stable of MySQL

---

**Install using the command line**

```
sudo snap install mysql
```

Don't have snapd? [Get set up for snaps](https://snapcraft.io/docs/installing-snapd).

---

### Package name

* mysql

---

### License

* Apache-2.0

---

### Last updated

* 17 August 2026 - 8.4/stable
* 14 September 2026 - 8.4/edge

---

### Websites

* [canonical.com](https://canonical.com/data/mysql "https://canonical.com/data/mysql")
* [dev.mysql.com](https://dev.mysql.com/ "https://dev.mysql.com/")

---

### Contact

* [matrix.to](https://matrix.to/#/#charmhub-data-platform:ubuntu.com "https://matrix.to/#/#charmhub-data-platform:ubuntu.com")

---

### Source code

* [github.com/canonical/mysql-snap](https://github.com/canonical/mysql-snap "https://github.com/canonical/mysql-snap")
* [github.com/mysql/mysql-server](https://github.com/mysql/mysql-server "https://github.com/mysql/mysql-server")

---

### Report a bug

* [github.com/canonical/mysql-snap/issues](https://github.com/canonical/mysql-snap/issues "https://github.com/canonical/mysql-snap/issues")

---

##### Report a Snap Store violation

* [Report this Snap](https://snapcraft.io/mysql#report-snap-modal)

---

* [Description](https://snapcraft.io/mysql#tab-description)
* [Security](https://snapcraft.io/mysql#tab-security)

#### MySQL

MySQL Snap ships the minimal set of binaries needed for the MySQL server and client.

**Install the snap**:

If you are an Ubuntu user, snapd is pre-installed and ready to go on all recent Ubuntu releases. Simply click on the drop-down menu at the upper right-hand corner of this page, select your channel of choice (e.g. 8.4/edge), and paste the command in your terminal, e.g.:

`sudo snap install mysql`

**Use the snap**:

By default, the MySQL `root` user is authenticated using the `auth_socket` plugin, similar to the deb version in the Ubuntu package repository. Therefore, to log as the `root` MySQL user, you need to prefix the `mysql` command with `sudo`.

`sudo mysql`

---

## Install MySQL on your Linux distribution

Choose your Linux distribution to get detailed installation instructions. If yours is not shown, get more details on the [installing snapd documentation](https://snapcraft.io/docs/installing-snapd).

[### Arch Linux](https://snapcraft.io/install/mysql/arch)

[### CentOS](https://snapcraft.io/install/mysql/centos)

[### Debian](https://snapcraft.io/install/mysql/debian)

[### elementary OS](https://snapcraft.io/install/mysql/elementary)

[### Fedora](https://snapcraft.io/install/mysql/fedora)

[### KDE Neon](https://snapcraft.io/install/mysql/kde-neon)

[### Kubuntu](https://snapcraft.io/install/mysql/kubuntu)

[### Manjaro](https://snapcraft.io/install/mysql/manjaro)

[### Pop!\_OS](https://snapcraft.io/install/mysql/pop)

[### openSUSE](https://snapcraft.io/install/mysql/opensuse)

[### Red Hat Enterprise Linux](https://snapcraft.io/install/mysql/rhel)

[### Ubuntu](https://snapcraft.io/install/mysql/ubuntu)

[### Raspberry Pi](https://snapcraft.io/install/mysql/raspbian)
