mysql - 安装 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 upgrade
Phabricator 命令。
我努力了:
sudo dpkg-reconfigure mysql-server-5.7
- 没有提示输入新密码使用 root 密码登录
mysqld_safe --skip-grant-tables &
并运行更新命令。一切似乎都成功了,但是当我再次尝试 Phabricator 时,我得到了例外。寻找临时密码:
sudo grep "临时密码" /var/log/mysqld.log grep: /var/log/mysqld.log: 没有这样的文件或目录
请注意,我是./bin/config set mysql.pass 'mypassword'
在使用上述任何方法更改它之后使用的。我也试过不加密码,还是不行。运行 Phabricator 存储升级命令后,我根本无法再访问 mySQL,任何重置密码的步骤似乎都无效。
我在 Ubuntu 18.04 上运行 MySQL 5.7 和 PHP 5.6
解决方案
推荐阅读
- docker - docker-compose 文件中的命令键如何工作
- java - 如何在Hashmap中添加与key对应的列表元素?
- c++ - C++中的字节流
- docker - 如何在构建期间创建的中间容器上使用标签过滤器(假设 LABEL 在 FROM 命令之后立即设置)?
- email - Phpmailer 使用自己的域
- python - 从 1919 年到 1930 年按国家/地区的最大数量排序前 2 个国家
- c++ - 查找最大乘积子数组
- node.js - AWS Elasticsearch Service 抛出的“没有可用于处理请求的服务器”
- python - 使用共享 yaxes 但“链接”xaxes 进行绘图
- python - 如何将集合中的相同单词组合成一个单词