![](/img/trans.png)
[英]DB Failure in Installation of pimcore 4.4.1 in combination with PHP 7
[英]Pimcore Database Installation on a Different Server
我剛剛開始使用 Pimcore 並將其 mysql 數據庫部署在另一台服務器上。 在安裝過程中,它無法連接到數據庫。 我使用此鏈接https://pimcore.com/docs/5.x/Development_Documentation/Getting_Started/Advanced_Installation_Topics.html為配置創建了數據庫 yml 文件,但仍然無法正常工作。 它僅在數據庫與 pimcore 位於同一台服務器上時才有效。 當我進行遠程連接時,它給出的錯誤是: An exception occurred in driver: SQLSTATE[HY000] [1045] Access denied for user 'SSL_USER'@'xxxx' (using password: YES)
。
我創建的 yml 文件如下所示:
parameters:
database_credentials:
user: SSL_USER
password: password
dbname: project_database
# env variables can be directly read with the %env() syntax
# see https://symfony.com/blog/new-in-symfony-3-2-runtime-environment-variables
host: x.x.x.x (Ip address of db server)
port: 3306
請看一下,您在用戶名中使用了“SSL”保留字。
只需使用另一個用戶名。
請在此處查看保留字列表: https://dev.mysql.com/doc/refman/8.0/en/keywords.html
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.