Skip to content

Commit

Permalink
Update mysql.md
Browse files Browse the repository at this point in the history
  • Loading branch information
laspavel committed Nov 21, 2024
1 parent ff1969e commit 38e49aa
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions 01.db/10001.mysql.md
Original file line number Diff line number Diff line change
Expand Up @@ -185,6 +185,16 @@ mysqldump -u root mysql user > user_table_dump.sql
```

## Готовые скрипты ##

### Создание пользователя и БД под проект ###
```
CREATE USER 'project'@'%' IDENTIFIED BY '<your_secret_password>';
CREATE DATABASE projectdb CHARACTER SET 'utf8mb4' COLLATE 'utf8mb4_bin';
GRANT ALL PRIVILEGES ON projectdb.* TO 'project'@'%';
FLUSH PRIVILEGES;
```

- - -

Источник: [https://ruhighload.com/Выбор+самых+больших+таблиц+из+mysql](https://ruhighload.com/Выбор+самых+больших+таблиц+из+mysql)

0 comments on commit 38e49aa

Please sign in to comment.