Strapi与mySQL数据库

时间:2019-12-17 21:06:11

标签: mysql strapi npx

我正在尝试在服务器上设置Strapi,我们已经使用了mySQL数据库。但是我很难找到除Mongo或sqLite以外的任何其他产品的设置说明。有任何步骤或提示吗?

每当我尝试运行npx create-strapi-app [name]并经过如下所示的选项时:

? Choose your installation type Custom (manual settings)
? Choose your default database client mysql
? Database name: [db_name]
? Host: 127.0.0.1
? Port: 3306
? Username: [user_name]
? Password: [password]
? Enable SSL connection: No

我收到以下错误:

 :no_entry:️ Connection test failed: Command failed: /bin/sh -c npm install --prefix /tmp/strapid0c093a76d5c strapi-connector-bookshelf@3.0.0-beta.18 knex@<0.20.0 mysql@latest
/bin/sh: 0.20.0: No such file or directory

我正在基于Linux的服务器上进行

0 个答案:

没有答案