我能够到达噬菌体的URL。当我从phabricator目录运行以下脚本时,我会收到下面复制的错误。我还从定制的/myconfig.conf. the文件中复制了mysql配置信息(凭据工作-我可以使用mysql -u根-p通过终端登录)。一旦我可以测试安装程序,我将把凭证更改为非根文件。
myconfig.conf.php
// DatabaseConfigurationProvider.
'mysql.configuration-provider' => 'DefaultDatabaseConfigurationProvider',
// The username to use when connecting to MySQL.
'mysql.user' => 'root',
// The password to use when connecting to MySQL.
'mysql.pass' => 'xxxxxxxxx',
// The MySQL server to connect to.
'mysql.host' => '127.0.0.1', ///'localhost',
// If you want to connect to a different port than the default (which is 3306)
'mysql.port' => null,运行后的错误./bin/存储升级
Unable To Connect: Attempt to connect to root@localhost failed with error #1045: Access denied for user 'root'@'localhost' (using password: NO).MySQL正在收听127.0.0.1:3306。我也尝试过以下方法(也传入根ID ),但是它没有工作:./bin/存储升级--用户密码
更新:当我使用一组新的凭据运行./bin/升级命令时,会得到以下错误:
[2014-05-07 16:15:16] EXCEPTION: (RuntimeException) Undefined property:
DefaultDatabaseConfigurationProvider::$getPassword at
[/usr/local/phabricator/libphutil/src/error/PhutilErrorHandler.php:216]
#0 PhutilErrorHandler::handleError(8, Undefined property:
DefaultDatabaseConfigurationProvider::$getPassword,
/usr/local/phabricator/phabricator/scripts/sql/manage_storage.php, 75,
Array of size 16 starting with: { _GET => Array }) called at
[/usr/local/phabricator/phabricator/scripts/sql/manage_storage.php:75]如果我在存储升级命令中输入用户名/密码,那么这个存储现在可以使用一个新的DB凭据,但是它没有从conf文件中正确地获得。我将检查conf并相应地更新此内容。
发布于 2014-05-07 17:17:54
如果我在存储升级命令中输入用户名/密码,那么这个存储现在可以使用一个新的DB凭据,但是它没有从conf文件中正确地获得。我将检查conf并相应地更新此内容。
./bin/storage upgrade --user "actual username" --password "actual password"发布于 2016-08-04 11:17:54
嗨,花了两天之后,我很容易就解决了这个问题:
./bin/config set mysql.host 'localhost'
./bin/config set mysql.user 'root'
./bin/config set mysql.pass 'pass'别忘了引号!
发布于 2018-03-12 11:28:01
在某些情况下,这还不够:./bin/存储升级想要创建新的数据库,但是phabricatos用户没有创建数据库的权限。因此,我建议使用mysql代码GRANT ALL PRIVILEGES ONphabricator_%.* TO 'phabricator'@'localhost';为数据库(现有的和将来创建的)授予所有权限phabricator用户all phabricator_%.* TO 'phabricator'@'localhost';。
https://stackoverflow.com/questions/23394405
复制相似问题