File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff 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
Original file line number Diff line number Diff 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; `
You can’t perform that action at this time.
0 commit comments