phabricator mysql_MySQL的Phabricator配置问题
我能够获得phabricator的URL . 当我从phabricator目录运行以下脚本时,我收到下面复制的错误 . 我还复制了custom / myconfig.conf.php文件中的mysql配置信息(凭证工作 - 我可以使用mysql -u root -p通过终端登录) . 一旦我可以测试设置,我会将凭据更改为非root .
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,
Error after running ./bin/storage upgrade
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 . 我也尝试了以下内容(也传递了root ID)但它不起作用:./ bin / storage upgrade --user --password
Update: 当我使用一组新凭据运行./bin/storage upgrade命令时,出现以下错误:
[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]
如果我在存储升级命令中传入用户名/密码但未从conf文件中正确获取,则存储现在可以使用新的数据库凭据 . 我将检查conf并相应地更新它 .
我能够获得phabricator的URL . 当我从phabricator目录运行以下脚本时,我收到下面复制的错误 . 我还复制了custom / myconfig.conf.php文件中的mysql配置信息(凭证工作 - 我可以使用mysql -u root -p通过终端登录) . 一旦我可以测试设置,我会将凭据更改为非root . 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, Error after running ./bin/storage upgrade 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 . 我也尝试了以下内容(也传递了root ID)但它不起作用:./ bin / storage upgrade --user --password Update: 当我使用一组新凭据运行./bin/storage upgrade命令时,出现以下错误: [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] 如果我在存储升级命令中传入用户名/密码但未从conf文件中正确获取,则存储现在可以使用新的数据库凭据 . 我将检查conf并相应地更新它 .