【发布时间】:2016-07-07 17:22:53
【问题描述】:
我正在 Ubuntu 16.04 上安装 Phabricator。
我安装了 PHP 7.0.8-3。
我在 https://secure.phabricator.com/book/phabricator/article/configuration_guide/ 的设置部分
当我访问我的网站时,我收到了错误
1045: 用户 'root'@'localhost' 的访问被拒绝(使用密码:否)
我尝试运行命令
phabricator/ $ ./bin/storage upgrade --user <user> --password <password>
但我只是收到以下错误:
[2016-07-07 17:15:54] 例外:(错误)在 [/src/aphront/storage/connection/mysql/AphrontMySQLDatabaseConnection.php:12] 调用未定义函数 mysql_real_escape_string() 奥术师(head=master,ref.master=4d4d16f25985),phabricator(head=master,ref.master=ef13b0e52b46),phutil(head=master,ref.master=32c56dc20b39) #0 AphrontMySQLDatabaseConnection::escapeBinaryString(string) 在 [/src/aphront/storage/connection/mysql/AphrontMySQLDatabaseConnection.php:8] 调用 #1 AphrontMySQLDatabaseConnection::escapeUTF8String(string) 在 [/src/xsprintf/qsprintf.php:178] 调用 #2 xsprintf_query(AphrontMySQLDatabaseConnection, string, integer, string, integer) 在 [/src/xsprintf/xsprintf.php:70] 调用 #3 xsprintf(string, AphrontMySQLDatabaseConnection, array) 在 [/src/xsprintf/qsprintf.php:64] 调用 #4 qsprintf(AphrontMySQLDatabaseConnection, string, string, string, string) 在 [/src/xsprintf/queryfx.php:5] 调用 #5 queryfx(AphrontMySQLDatabaseConnection, string, string, string, string) 在 [/src/xsprintf/queryfx.php:11] 调用 #6 queryfx_all(AphrontMySQLDatabaseConnection, string, string, string, string) 在 [/src/aphront/storage/connection/AphrontDatabaseConnection.php:26] 调用 #7 AphrontDatabaseConnection::queryData(string, string, string, string) 在 [/src/infrastructure/storage/lisk/LiskDAO.php:535] 调用 #8 LiskDAO::loadRawDataWhere(string, string) 在 [/src/infrastructure/storage/lisk/LiskDAO.php:476] 调用 #9 LiskDAO::loadAllWhere(string, string) 在 [/src/infrastructure/env/PhabricatorConfigDatabaseSource.php:18] 调用 #10 PhabricatorConfigDatabaseSource::loadConfig(string) 在 [/src/infrastructure/env/PhabricatorConfigDatabaseSource.php:7] 调用 #11 PhabricatorConfigDatabaseSource::__construct(string) 在 [/src/infrastructure/env/PhabricatorEnv.php:232] 调用 #12 PhabricatorEnv::buildConfigurationSourceStack() 在 [/src/infrastructure/env/PhabricatorEnv.php:95] 调用 #13 PhabricatorEnv::initializeCommonEnvironment() 在 [/src/infrastructure/env/PhabricatorEnv.php:75] 调用 #14 PhabricatorEnv::initializeScriptEnvironment() 在 [/scripts/init_script.php:21] 调用 #15 init_phabricator_script() 在 [/scripts/init_script.php:24] 调用 #16 require_once(string) 在 [/scripts/sql/manage_storage.php:5] 调用
更新:
自 2021 年 6 月 1 日起,Phabricator 将不再维护或更新。Click here for more info。
【问题讨论】:
标签: php mysql phabricator