> For the complete documentation index, see [llms.txt](https://enterprise-ua.hideez.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://enterprise-ua.hideez.com/korporativnii-server-hideez/rozgortannya/vstanovlennya-bazi-danikh/mysql-na-windows.md).

# MySQL на Windows

#### 1. Завантаження [MySQL](https://dev.mysql.com/downloads/installer)

#### 2. Встановлення

Ви можете прочитати документацію зі встановлення MySQL за [цією](https://dev.mysql.com/doc/refman/8.0/en/mysql-installer-setup.html) адресою.

* Під час установки MySQL для запуску нашого ПЗ Ви можете обрати опцію Server only.
* Під час інсталяції вас можуть попросити інсталювати Microsoft Visual C ++ 2019 Redistributable Package. Погодьтеся і виконайте установку.
* Крім того, під час процесу встановлення вам буде запропоновано ввести надійний пароль для користувача root. Не забудьте цей пароль, він нам знадобиться пізніше.

#### 3. Створення користувача та бази даних MySQL

{% embed url="<https://www.youtube.com/watch?v=kQto0YkuqWk>" %}

3.1. Запустіть MySQL Command Line Client (введіть "MySQL 8.0 Command Line Client" у пошуку Windows).

3.2. Наступні строки створюють БД `hesdb`, користувача з іменем `hesuser` та паролем `<user_password>`. Замініть `<user_password>` на сильний пароль, інакше Ви отримаєте помилку валідації пароля.

```
mysql> CREATE DATABASE hesdb;
mysql> CREATE USER 'hesuser'@'127.0.0.1' IDENTIFIED BY '<user_password>';
mysql> GRANT ALL ON hesdb.* TO 'hesuser'@'127.0.0.1';
mysql> FLUSH PRIVILEGES;
```


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## 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, and the optional `goal` query parameter:

```
GET https://enterprise-ua.hideez.com/korporativnii-server-hideez/rozgortannya/vstanovlennya-bazi-danikh/mysql-na-windows.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

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.
