我正在尝试根据此页面上的安装说明安装 Akeneo PIM。使用存档安装 Akeneo PIM 社区版 (CE)
当我运行以下命令时:
bin/console pim:install --force --symlink --clean --env=prod
我收到一个错误:
Database does not exist yet
06:21:53 ERROR [console] Error thrown while running command "doctrine:database:create --no-debug=1 --env=prod". Message: "An exception occurred in driver: SQLSTATE[HY000] [2002] No such file or directory" ["exception" => Doctrine\DBAL\Exception\ConnectionException { …},"command" => "doctrine:database:create --no-debug=1 --env=prod","message" => "An exception occurred in driver: SQLSTATE[HY000] [2002] No such file or directory"]
In AbstractMySQLDriver.php line 112:
An exception occurred in driver: SQLSTATE[HY000] [2002] No such file or dir
ectory
In PDOConnection.php line 50:
SQLSTATE[HY000] [2002] No such file or directory
In PDOConnection.php line 46:
SQLSTATE[HY000] [2002] No such file or directory
doctrine:database:create [--shard SHARD] [--connection [CONNECTION]] [--if-not-exists] [-h|--help] [-q|--quiet] [-v|vv|vvv|--verbose] [-V|--version] [--ansi] [--no-ansi] [-n|--no-interaction] [-e|--env ENV] [--no-debug] [--] <command>
The command terminated with an error code: 1.
In CommandExecutor.php line 66:
The command terminated with an error code: 1.
doctrine:database:create [--shard SHARD] [--connection [CONNECTION]] [--if-not-exists] [-h|--help] [-q|--quiet] [-v|vv|vvv|--verbose] [-V|--version] [--ansi] [--no-ansi] [-n|--no-interaction] [-e|--env ENV] [--no-debug] [--] <command>
然后我在 MySQL 中创建了一个数据库。并将数据库连接信息添加到~/pim-community-standard/app/config/parameters.yml.dist
文件中。
~/pim-community-standard/app/config/parameters.yml.dist:
parameters:
database_driver: pdo_mysql
database_host: 127.0.0.1
database_port: null
database_name: akeneo_pim
database_user: root
database_password: root
但我仍然得到同样的错误。
我认为缺少配置。但我找不到。