Проект ещё жив!
This commit is contained in:
12
docs/DB.md
12
docs/DB.md
@@ -4,10 +4,14 @@
|
||||
|
||||
We are using MariaDB, but any MySQL-compatible database should be enough. There are instructions how to setup it for using with E949.
|
||||
|
||||
1. Login to your SQL database with admin account:
|
||||
|
||||
```bash
|
||||
mysql -u root -p
|
||||
```
|
||||
|
||||
2. Setup new user and database:
|
||||
|
||||
```mysql
|
||||
CREATE USER e949@localhost IDENTIFIED BY 'password';
|
||||
CREATE DATABASE e949 CHARACTER SET = 'utf8';
|
||||
@@ -16,10 +20,14 @@ FLUSH PRIVILEGES;
|
||||
EXIT
|
||||
```
|
||||
|
||||
3. Login with new account:
|
||||
|
||||
```bash
|
||||
mysql -u e949 -p
|
||||
```
|
||||
|
||||
4. Create tables:
|
||||
|
||||
```mysql
|
||||
USE e949;
|
||||
CREATE TABLE users (
|
||||
@@ -72,4 +80,6 @@ CREATE TABLE invites (
|
||||
CREATE TABLE approved_tags (
|
||||
value VARCHAR(255) NOT NULL COMMENT 'The tag itself'
|
||||
);
|
||||
```
|
||||
```
|
||||
|
||||
5. Profit!!!
|
||||
Reference in New Issue
Block a user