Os:CentOS Linux release 7.7.1908 (Core)
节点版本:v12.11.1
Npm版本:6.11.3
Maria数据库版本:10.4.8-MariaDB
嗨,
我正在尝试安装wiki.js,它给我这个错误:
[voipiran@vps-118-82 docs]$ node server
Loading configuration from /home/voipiran/public_html/docs/config.yml... OK
2019-10-20T08:14:32.230Z [MASTER] info: =======================================
2019-10-20T08:14:32.296Z [MASTER] info: = Wiki.js 2.0.0-beta.303 ==============
2019-10-20T08:14:32.297Z [MASTER] info: =======================================
2019-10-20T08:14:32.297Z [MASTER] info: Initializing...
2019-10-20T08:14:34.425Z [MASTER] info: Connecting to database...
2019-10-20T08:14:34.715Z [MASTER] info: Database Connection Successful [ OK ]
migration file "2.0.0-beta.1.js" failed
migration failed with error: alter table `authentication` add primary key `authentication_pkey`(`key`) - Specified key was too long; max key length is 1000 bytes
2019-10-20T08:14:35.555Z [MASTER] error: Database Initialization Error: alter table `authentication` add primary key `authentication_pkey`(`key`) - Specified key was too long; max key length is 1000 bytes
这是我的config.yml
数据库配置:
db:
type: mariadb
# PostgreSQL / MySQL / MariaDB / MS SQL Server only:
host: localhost
port: 3306
user: voipiran_docsuser
pass: mypassword
db: voipiran_docs
ssl: false
# SQLite only:
storage: path/to/database.sqlite
我将其安装在mysql及其ok上,但我想将其安装在mariadb上。 我该怎么办? 谢谢。