背景和设置
我正在尝试使用此Lando BLT 教程从 drupal 启动本地开发环境来做 concpet/simple setup 的证明,以查看它是如何工作的,我遇到了以下错误。
我目前正在使用以下内容:
- macOS 大苏尔 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
如何绕过或解决此错误?如果您想了解更多信息,请告诉我