3
我一直試圖在Centos 6.8和Ubuntu 14.04上安裝Phabricator。在這兩個嘗試,有傷健配置MySQL的時候,我得到了以下錯誤:無法與任何數據庫主機建立連接
EXCEPTION: (PhabricatorClusterStrandedException) Unable to establish a connection to any database host (while trying "phabricator_config"). All masters and replicas are completely unreachable. at [<phabricator>/src/infrastructure/storage/lisk/PhabricatorLiskDAO.php:140]
arcanist(head=master, ref.master=fad85844314b), phabricator(head=master, ref.master=4dadad53ae5d), phutil(head=master, ref.master=086df1ba443c)
#0 PhabricatorLiskDAO::raiseUnreachable(string) called at [<phabricator>/src/infrastructure/storage/lisk/PhabricatorLiskDAO.php:111]
#1 PhabricatorLiskDAO::newClusterConnection(string, string, string) called at [<phabricator>/src/infrastructure/storage/lisk/PhabricatorLiskDAO.php:66]
#2 PhabricatorLiskDAO::establishLiveConnection(string) called at [<phabricator>/src/infrastructure/storage/lisk/LiskDAO.php:1008]
#3 LiskDAO::establishConnection(string) called at [<phabricator>/src/infrastructure/storage/lisk/LiskDAO.php:516]
#4 LiskDAO::loadRawDataWhere(string, string)
#5 call_user_func_array(array, array) called at [<phabricator>/src/infrastructure/storage/lisk/LiskDAO.php:476]
#6 LiskDAO::loadAllWhere(string, string) called at [<phabricator>/src/infrastructure/env/PhabricatorConfigDatabaseSource.php:19]
#7 PhabricatorConfigDatabaseSource::loadConfig(string) called at [<phabricator>/src/infrastructure/env/PhabricatorConfigDatabaseSource.php:7]
#8 PhabricatorConfigDatabaseSource::__construct(string) called at [<phabricator>/src/infrastructure/env/PhabricatorEnv.php:249]
#9 PhabricatorEnv::buildConfigurationSourceStack(boolean) called at [<phabricator>/src/infrastructure/env/PhabricatorEnv.php:95]
#10 PhabricatorEnv::initializeCommonEnvironment(boolean) called at [<phabricator>/src/infrastructure/env/PhabricatorEnv.php:75]
#11 PhabricatorEnv::initializeScriptEnvironment(boolean) called at [<phabricator>/scripts/init/lib.php:22]
#12 init_phabricator_script(array) called at [<phabricator>/scripts/init/init-setup.php:12]
#13 require_once(string) called at [<phabricator>/scripts/sql/manage_storage.php:5]
我這個安裝指南一直遵循:https://secure.phabricator.com/book/phabricator/article/configuration_guide/
我也試圖效仿別人在網上,沒有成功。 命令嘗試是
./bin/storage升級
我也嘗試
./bin/storage升級--user --password
和其他命令,例如在./bin/config上設置主機或用戶,但都似乎導致相同的錯誤。
我不知道該怎麼做,我一直在玩我能找到的每一個配置。
此錯誤表示它無法連接到MySQL。你確認mysql是否真的在運行?你能用'mysql'客戶端手動連接嗎? – varlogtim
我已經能夠使用'mysql -u root -p'進行登錄,並且已經檢查了服務,並且似乎mysql實際上正在運行並偵聽端口3306. – SexyToad
嘗試重新啓動服務器..可能有幫助 – VishalParkash