首页 > 解决方案 > 安装 Phabricator 时 mySQL 密码不起作用

问题描述

我似乎无法设置 Phabricator 在安装期间可以使用的有效 MySQL 根密码。

每次我尝试重新启动 phd 守护进程(按照这些说明:https ://gist.github.com/sparrc/b4eff48a3e7af8411fc1 )我都会收到以下异常:

[2018-09-20 08:38:09] EXCEPTION: (PhabricatorClusterStrandedException) Unable to establish a connection to any database host (while trying "phabricator_config"). All masters and replicas are completely unreachable.

AphrontConnectionQueryException: Attempt to connect to root@127.0.0.1 failed with error #1698: Access denied for user 'root'@'localhost'. at [<phabricator>/src/infrastructure/storage/lisk/PhabricatorLiskDAO.php:158]

但是,在重新安装 MySQL 后,我能够成功完成./bin/storage upgradePhabricator 命令。

我努力了:

请注意,我是./bin/config set mysql.pass 'mypassword'在使用上述任何方法更改它之后使用的。我也试过不加密码,还是不行。运行 Phabricator 存储升级命令后,我根本无法再访问 mySQL,任何重置密码的步骤似乎都无效。

我在 Ubuntu 18.04 上运行 MySQL 5.7 和 PHP 5.6

标签: mysqlphabricatorubuntu-18.04

解决方案


推荐阅读