Connecting Wikijs to MySQL

aiqt4smr  于 2022-10-22  发布在  Mysql
关注(0)|答案(1)|浏览(144)

I am trying to connect Wiki.js to a MySQL database in which I can add documents and stuff. In this, the guide tells me to make a config file, shown below.

db:
  type: mysql
  host: localhost
  port: 443
  user: root
  pass: password
  db: wikijs
  ssl: false

Upon trying to connect I get the following error message;
2022-10-22T11:13:08.937Z [MASTER] error: Database Connection Error: ETIMEDOUT undefined:undefined 2022-10-22T11:13:08.937Z [MASTER] warn: Will retry in 3 seconds... [Attempt x of 10]
Powershell Image of error code
Full PowershellOutput
What am I doing wrong?
EDIT: Added the full output

dbf7pr2w

dbf7pr2w1#

Port 443 was the incorrect port. Switching it to 3306 fixed the problem.

相关问题