mirror of
https://github.com/fruworg/fruworg.github.io.git
synced 2024-11-16 09:27:17 +03:00
Create mariadb-installation.md
This commit is contained in:
parent
e88edce852
commit
fc0211a679
26
content/posts/mariadb-installation.md
Normal file
26
content/posts/mariadb-installation.md
Normal file
@ -0,0 +1,26 @@
|
|||||||
|
---
|
||||||
|
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
|
||||||
|
```
|
Loading…
Reference in New Issue
Block a user