我已经使用 eZ Launchpad 文档在我的 Mac 上安装了 eZ 平台:https ://ezsystems.github.io/launchpad/ 。
安装后,我可以成功访问平台并开始创建内容模型。
我也想使用 GraphQL,所以我按照说明进行操作:https ://doc.ezplatform.com/en/latest/api/graphql/ 。
不幸的是,当我尝试使用以下命令生成架构时出现错误:
php bin/console ezplatform:graphql:generate-schema
php bin/console cache:clear
这是我得到的错误:
In ExceptionConversion.php line 169:
Database error
In AbstractMySQLDriver.php line 93:
An exception occurred in driver: SQLSTATE[HY000] [2002] No such file or directory
In PDOConnection.php line 31:
SQLSTATE[HY000] [2002] No such file or directory
In PDOConnection.php line 27:
SQLSTATE[HY000] [2002] No such file or directory
这是 app/config/parameters.yml:
# This file is auto-generated during the composer install parameters:
env(SYMFONY_SECRET): ThisEzPlatformTokenIsNotSoSecret_PleaseChangeIt
env(DATABASE_DRIVER): pdo_mysql
env(DATABASE_HOST): localhost
env(DATABASE_PORT): null
env(DATABASE_NAME): ezplatform
env(DATABASE_USER): root
env(DATABASE_PASSWORD): null
env(DATABASE_CHARSET): utf8mb4
env(DATABASE_COLLATION): utf8mb4_unicode_520_ci
env(DATABASE_VERSION): mariadb-10.2.26