安装数据库

This commit is contained in:
postyizhan 2024-06-08 23:50:13 +08:00
parent 663620a683
commit b1cdf3c27e
25 changed files with 109 additions and 5 deletions

Binary file not shown.

After

Width:  |  Height:  |  Size: 55 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 48 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 49 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 57 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 310 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 167 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 40 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 22 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 46 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 30 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 102 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 440 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 36 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 101 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 102 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 25 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 27 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 159 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 37 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 60 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 23 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 66 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 66 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 56 KiB

View File

@ -19,7 +19,7 @@ sidebar_position: 5
5. 在数据量较大时候相较sqlite有更好的性能 查询时需要的时间短, 特别是某些经济插件付款时避免顿卡.
:::
## MySQL / MariaDB
# MySQL / MariaDB
MariaDB是著名的MySQL分叉只是服务器腐竹的话你只需要知道这两个东西差不多就好了
@ -31,13 +31,117 @@ MariaDB是著名的MySQL分叉只是服务器腐竹的话你只需要知
:::
### 安装
# 安装
windows我能想到的最简单的就是 [小皮数据库](https://www.xp.cn/download.html)了
我会告诉你 **我认为** 最简单的几种安装数据库的方法
[小皮数据库怎么使用](https://cn.bing.com/search?q=%E5%B0%8F%E7%9A%AE%E6%95%B0%E6%8D%AE%E5%BA%93%E6%80%8E%E4%B9%88%E4%BD%BF%E7%94%A8)
## 小皮数据库
Linux? 你都会用Linux了 不会就用面板自动安装...自己研究吧
<details>
<summary>从官网下载和安装</summary>
![](_images/数据库相关/1.png)
![](_images/数据库相关/2.png)
![](_images/数据库相关/3.png)
![](_images/数据库相关/4.png)
![](_images/数据库相关/5.png)
![](_images/数据库相关/6.png)
</details>
<details>
<summary>卸载MySQL5和安装MySQL8</summary>
MySQL5 版本太低了很多插件需要更高版本的装MySQL8就够用了
![](_images/数据库相关/7.png)
![](_images/数据库相关/8.png)
</details>
<details>
<summary>配置数据库</summary>
安装好后在首页启动 MySQL
![](_images/数据库相关/9.png)
更改root账户的密码
:::danger
不要设置过于简单的密码!
尤其是你打算把数据库开到公网,**绝对不要**设置过于简单的密码!
**这真的很严重**
:::
![](_images/数据库相关/10.png)
![](_images/数据库相关/11.png)
然后你就可以建数据库了,建好之后把你填这里的信息填到插件的配置文件里
</details>
## 宝塔面板
<details>
<summary>从官网下载和安装</summary>
![](_images/数据库相关/12.png)
![](_images/数据库相关/13.png)
![](_images/数据库相关/14.png)
![](_images/数据库相关/15.png)
![](_images/数据库相关/16.png)
![](_images/数据库相关/17.png)
![](_images/数据库相关/18.png)
![](_images/数据库相关/19.png)
宝塔面板是必须要绑定账号的
按照提示去做
![](_images/数据库相关/20.png)
全 x 掉,一个都不需要装
![](_images/数据库相关/21.png)
</details>
<details>
<summary>安装MySQL</summary>
![](_images/数据库相关/22.png)
![](_images/数据库相关/23.png)
![](_images/数据库相关/24.png)
</details>
<details>
<summary>配置数据库</summary>
TODO
</details>
### 配置