安装phabricator时mysql密码不起作用

9rbhqvlz  于 2021-06-19  发布在  Mysql
关注(0)|答案(0)|浏览(273)

我似乎无法设置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]

不过,我还是成功地完成了任务 ./bin/storage upgrade 重新安装mysql后的phabricator命令。
我试过: sudo dpkg-reconfigure mysql-server-5.7 -没有提示输入新密码
使用登录 mysqld_safe --skip-grant-tables & 并在根密码上运行update命令。一切似乎都是成功的,但只要我再试一次,我就得到了例外。
正在查找临时密码:
sudo grep“临时密码”/var/log/mysqld.log grep:/var/log/mysqld.log:没有这样的文件或目录
请注意,我正在使用 ./bin/config set mysql.pass 'mypassword' 使用上述任何方法更改后。我也试过没有密码,这不管用。一旦我运行了phabricator storage upgrade命令,我就不能再访问mysql了,任何重置密码的步骤似乎都没有效果。
我在ubuntu18.04上运行mysql 5.7和php5.6

暂无答案!

目前还没有任何答案,快来回答吧!

相关问题