update faq

This commit is contained in:
Pig Fang 2020-08-23 11:46:57 +08:00
parent 6eb2d08f12
commit 1e28947a75
No known key found for this signature in database
GPG Key ID: A8198F548DADA9E2
2 changed files with 30 additions and 0 deletions

View File

@ -226,3 +226,18 @@ Another solution is modify your Apache configuration file, and append a new line
```
AddType application/wasm .wasm
```
## MySQL reports "Specified key was too long..."
This problem usually occurs on Windows.
The best solution is using Linux as the operating system for your server. This not only solves this problem, but also avoids some other weird problems which only occur on Windows.
However, you may want to solve this problem temporarily. You can modify configuration file of MySQL. Open `my.ini`, then find `[mysql]` section, and append two lines below:
```ini
innodb_large_prefix=ON
innodb_file_format=Barracuda
```
Save the file and restart MySQL service.

View File

@ -259,3 +259,18 @@ application/wasm wasm
```
AddType application/wasm .wasm
```
## MySQL 提示「Specified key was too long...」
这往往发生在 Windows 系统上。
最彻底的解决办法是使用 Linux 作为服务器的操作系统(但请不要使用宝塔之类的面板软件),这不仅能解决这个问题,还可以避免其它只会出现在 Windows 中的问题。
临时的解决办法是修改 MySQL 的配置文件。打开 `my.ini` 文件,在 `[mysqld]` 下面加两行:
```ini
innodb_large_prefix=ON
innodb_file_format=Barracuda
```
保存并重新启动 MySQL。