fruworg.github.io/content/posts/mariadb-installation.md

27 lines
695 B
Markdown
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

---
title: Установка и конфигурация MariaDB
description: На debian-based дистрибутивы
date: 2024-01-26T16:30:00+06:00
tags: [linux, mysql]
---
## Установка MariaDB
```shell
apt install mariadb-server
```
## Security конфигурация
```shell
mysql_secure_installation
```
## Создание БД и пользователя
Для того, чтобы можно было подключиться удалённо, необходимо заменить `localhost` на `*`.
```mysql
mysql
create database <database>;
grant all privileges on <database>.* TO '<username>'@'localhost' identified by '<password>';
flush privileges;
exit
```