facebook/phabricator — Issue #75: Problem with sql_patch 079.nametokenindex.php
Author: mabdelfattah
Created: 2011-10-25 16:00:27+00:00
State: open

I was trying to upgrade, but I was getting php exception each time (as follow), then I found the problem with password is not being passed, I added it manually to AphrontMySQLDatabaseConnection.php and the upgrade completed successfully

[2011-10-25 17:25:18] EXCEPTION: (AphrontQueryConnectionException) Attempt to connect to root@localhost failed with error #0: . at [/usr/local/phabricator/phabricator/src/storage/connection/mysql/AphrontMySQLDatabaseConnection.php:151]
#0 AphrontMySQLDatabaseConnection::establishConnection() called at [/usr/local/phabricator/phabricator/src/storage/connection/mysql/AphrontMySQLDatabaseConnection.php:187]
#1 AphrontMySQLDatabaseConnection::requireConnection() called at [/usr/local/phabricator/phabricator/src/storage/connection/mysql/AphrontMySQLDatabaseConnection.php:182]
#2 AphrontMySQLDatabaseConnection::getTransactionKey() called at [/usr/local/phabricator/phabricator/src/storage/connection/base/AphrontDatabaseConnection.php:54]
#3 AphrontDatabaseConnection::getLockLevels() called at [/usr/local/phabricator/phabricator/src/storage/connection/base/AphrontDatabaseConnection.php:66]
#4 AphrontDatabaseConnection::isReadLocking() called at [/usr/local/phabricator/phabricator/src/storage/lisk/dao/LiskDAO.php:457]
#5 LiskDAO::loadRawDataWhere(null, 1 = 1)
#6 call_user_func_array(Array of size 2 starting with: { 0 => Object PhabricatorUser }, Array of size 2 starting with: { 0 => null }) called at [/usr/local/phabricator/phabricator/src/storage/lisk/dao/LiskDAO.php:392]
#7 LiskDAO::loadAllWhere(1 = 1) called at [/usr/local/phabricator/phabricator/src/storage/lisk/dao/LiskDAO.php:357]
#8 LiskDAO::loadAll() called at [/usr/local/phabricator/phabricator/resources/sql/patches/079.nametokenindex.php:23]
#9 require_once(/usr/local/phabricator/phabricator/resources/sql/patches/079.nametokenindex.php) called at [/usr/local/phabricator/phabricator/scripts/sql/upgrade_schema.php:141]