docs: update local install

This commit is contained in:
pycook
2023-11-30 16:18:33 +08:00
parent 7c7b360ffc
commit 34c846581e
2 changed files with 11 additions and 0 deletions

View File

@@ -1,6 +1,12 @@
### Install
- Start mysql, redis
> mysql must set sql_mode, and root enters mysql to execute:
>
> `set global sql_mode='STRICT_TRANS_TABLES,NO_ZERO_IN_DATE,NO_ZERO_DATE,ERROR_FOR_DIVISION_BY_ZERO,NO_AUTO_CREATE_USER,NO_ENGINE_SUBSTITUTION';`
>
> `set session sql_mode='STRICT_TRANS_TABLES,NO_ZERO_IN_DATE,NO_ZERO_DATE,ERROR_FOR_DIVISION_BY_ZERO,NO_AUTO_CREATE_USER,NO_ENGINE_SUBSTITUTION';`
- Create mysql database: cmdb
- Pull code