【发布时间】:2020-12-08 16:32:56
【问题描述】:
背景和设置
我正在尝试使用此 Lando BLT Tutorial 从 drupal 启动本地开发环境,以证明 concpet/simple setup 以查看其工作原理,但遇到以下错误。
我目前正在使用以下内容:
- macOS Big Sur 11.0.1
- Docker 桌面 2.5.0.1
- PHP 7.3
- 作曲家 1.10.19
错误输出
为了便于阅读,我解析了堆栈跟踪
[info] Sites directory sites/default already exists - proceeding.
[info] Executing: mysql --defaults-file=/private/tmp/drush_fwtkwh --database=drupal --host=localhost --port=3306 --silent -A < /private/tmp/drush_LyVjVm
[info] Executing: mysql --defaults-file=/private/tmp/drush_jEVO19 --database=information_schema --host=localhost --port=3306 --silent -A < /private/tmp/drush_Xugn6U
[warning] Failed to drop or create the database. Do it yourself before installing. dyld: Library not loaded: /usr/local/opt/openssl/lib/libssl.1.0.0.dylib
Referenced from: /usr/local/bin/mysql
Reason: image not found
sh: line 1: 71580 Abort trap: 6 mysql --defaults-file=/private/tmp/drush_jEVO19 --database=information_schema --host=localhost --port=3306 --silent -A < /private/tmp/drush_Xugn6U
[notice] Starting Drupal installation. This takes a while.
/**
* Database configuration.
*/
[notice] Performed install task: install_select_language
[notice] Performed install task: install_select_profile
[notice] Performed install task: install_load_profile
[info] Undefined index: value install.core.inc:2303
[info] Array to string conversion install.core.inc:2303
In install.core.inc line 2307:
[Drupal\Core\Installer\Exception\InstallerException]
Database settings:
Array
我的尝试
-
我曾尝试使用 brew 重新启动 mysql,如果我记得是
brew restart mysql。 -
我也试过
mysql.server start。 -
还有
brew uninstall openssl; brew uninstall openssl; brew install https://github.com/tebelorg/Tump/releases/download/v1.0.0/openssl.rb。 * 当我运行brew install https://github.com/tebelorg/Tump/releases/download/v1.0.0/openssl.rb时,它会从 brew 中得到一个使用错误。 -
当我运行
mysql -u root -p时,我收到以下信息:dyld:库未加载:/usr/local/opt/openssl/lib/libssl.1.0.0.dylib 引用自:/usr/local/bin/mysql 原因:找不到图片 zsh: 中止 mysql -u root -p
如何绕过或解决此错误?如果您想了解更多信息,请告诉我
【问题讨论】:
标签: php mysql docker drupal lando