Skip to content

Commit 7d2f2fa

Browse files
committed
2018-06-28 补充 MySQL 相关
1 parent a290d08 commit 7d2f2fa

2 files changed

Lines changed: 15 additions & 0 deletions

File tree

markdown-file/Mysql-Install-And-Settings.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -142,6 +142,13 @@ max_allowed_packet = 50M
142142
- 保留 **/etc/my.cnf****/usr/program/mysql/mysql-test/** 目录下配置文件,其他删除掉。
143143
- 我整理的一个单机版配置说明(MySQL 5.6,适用于 1G 内存的服务器):
144144
- [my.cnf](MySQL-Settings/MySQL-5.6/1G-Memory-Machine/my-for-comprehensive.cnf)
145+
- 其中我测试的结果,在不适用任何配置修改的情况下,1G 内存安装 MySQL 5.6 默认就会占用 400M 左右的内存,要降下来的核心配置要补上这几个参数:
146+
147+
```
148+
performance_schema_max_table_instances=400
149+
table_definition_cache=400
150+
table_open_cache=256
151+
```
145152

146153
## 修改 root 账号密码
147154

markdown-file/WordPress-Install-And-Settings.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -162,6 +162,14 @@ AllowOverride All
162162
</IfModule>
163163
```
164164

165+
- 重启 Apache
166+
167+
```
168+
systemctl restart httpd.service
169+
systemctl enable httpd.service
170+
```
171+
172+
165173
## 创建数据库
166174

167175
- SQL 语句:`CREATE DATABASE wordpress DEFAULT CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci;`

0 commit comments

Comments
 (0)