mirror of
https://github.com/sb745/NyaaV3.git
synced 2025-03-12 13:56:55 +02:00
Updated database instructions
This commit is contained in:
parent
7f229a3d6e
commit
73353aed3f
1 changed files with 3 additions and 3 deletions
|
@ -41,10 +41,10 @@ pyenv eases the use of different Python versions, and as not all Linux distros o
|
||||||
- Enable `USE_MYSQL` flag in config.py
|
- Enable `USE_MYSQL` flag in config.py
|
||||||
- Install MariaDB by following instructions [here](https://downloads.mariadb.org/mariadb/repositories/)
|
- Install MariaDB by following instructions [here](https://downloads.mariadb.org/mariadb/repositories/)
|
||||||
- Run the following commands logged in as your root db user (substitute for your own `config.py` values if desired):
|
- Run the following commands logged in as your root db user (substitute for your own `config.py` values if desired):
|
||||||
- `CREATE USER 'test'@'localhost' IDENTIFIED BY 'test123';`
|
- `CREATE USER 'nyaauser'@'localhost' IDENTIFIED BY 'nyaapass';`
|
||||||
- `GRANT ALL PRIVILEGES ON *.* TO 'test'@'localhost';`
|
|
||||||
- `FLUSH PRIVILEGES;`
|
|
||||||
- `CREATE DATABASE nyaav3 DEFAULT CHARACTER SET utf8 COLLATE utf8_bin;`
|
- `CREATE DATABASE nyaav3 DEFAULT CHARACTER SET utf8 COLLATE utf8_bin;`
|
||||||
|
- `GRANT ALL PRIVILEGES ON nyaav3.* TO 'nyaauser'@'localhost';`
|
||||||
|
- `FLUSH PRIVILEGES;`
|
||||||
|
|
||||||
### Finishing up
|
### Finishing up
|
||||||
- Run `python db_create.py` to create the database and import categories
|
- Run `python db_create.py` to create the database and import categories
|
||||||
|
|
Loading…
Add table
Reference in a new issue