# Install MySql on Ubuntu

**MySQL** is an open-source relational database management system (RDBMS) where data is organized into one or more data tables in which data types may be related to each other.

The reference version used in this tutorial is Ubuntu 20.04.

> Update system packages (recommneded)

```bash
$ sudo apt update
```

> Install the `mysql-server` package

```bash
$ sudo apt install mysql-server
```

> Configure the MySql server (using `sudo)`

```bash
$ sudo mysql_secure_installation
```

This command will take the user through a series of prompts where you can make some changes to your MySQL installation’s security options.

The most important step in this setup is when we are asked for the password of the MySql root user.

```bash
Please set the password for root here.

New password: ******
Re-enter new password: ******
```

## Links & Resources

* [MySql](https://dev.mysql.com/) - the official website
* [How to install MySql on Ubuntu](https://www.digitalocean.com/community/tutorials/how-to-install-mysql-on-ubuntu-20-04) - a complete tutorial provided by Digital Ocean


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://appseed.gitbook.io/docs/technologies/mysql/install-on-ubuntu.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
