1

我正在尝试(徒劳)按照指南@ https://doc.ezplatform.com/en/latest/community_resources/installing-on-mac-os-and-windows在本地运行 eZ 平台(macOS v10.14.6) /

我使用 Homebrew 安装 MySQL + PHP 7.3。

一切顺利,直到我运行composer ezplatform-install。安装程序从不提示我输入文档中所述的任何参数。此外,还会发生这种情况:

> @php bin/console ezplatform:install clean
Creating the database ezp if it does not exist, executing command doctrine:database:create --if-not-exists
The configured database 'ezp' does not exist or cannot be created (An error occurred when executing the "'doctrine:database:create --if-not-exists'" command.).
Please check the database configuration in 'app/config/parameters.yml'
Script @php bin/console ezplatform:install clean handling the ezplatform-install event returned with error code 4

我对这个残酷的 shell 反馈有几个问题:

  • 没有任何app/config/parameters.yml,配置存在于.env文件中
  • 我已经启动并运行了 MySQL,并且确实存在一个“ezp”数据库​​。

配置方面是我的.env设置

# Doctrine DBAL
DATABASE_USER=user
DATABASE_PASSWORD=password
DATABASE_NAME=ezp
DATABASE_HOST=localhost
DATABASE_PORT=3306
DATABASE_PLATFORM=mysql
DATABASE_DRIVER=pdo_mysql

我还按照我在这个主题上找到的几个线程的建议将 server_version 添加到了教义.yaml 中。我的问题一直存在...

# configure these for your database server
driver: pdo_mysql
server_version: 8.0.18
charset: '%database_charset%'
default_table_options:
  charset: '%database_charset%'
  collate: '%database_collation%'
url: '%env(resolve:DATABASE_URL)%'
4

1 回答 1

0

尝试删除数据库并让 eZ Platforme 创建它。

问候。

于 2020-09-26T01:06:54.423 回答