PDOException Object
(
[message:protected] => SQLSTATE[HY000]: General error: 1005 Can't create table './chibal1_magentoNew/api_session.frm' (errno: 121)
[string:private] =>
[code:protected] => HY000
[file:protected] => /home/chibal1/public_html/stage/lib/Varien/Db/Adapter/Pdo/Mysql.php
[line:protected] => 276
[trace:private] => Array
(
[0] => Array
(
[file] => /home/chibal1/public_html/stage/lib/Varien/Db/Adapter/Pdo/Mysql.php
[line] => 276
[function] => query
[class] => PDO
[type] => ->
[args] => Array
(
[0] => CREATE TABLE `api_session` (
`user_id` mediumint(9) UNSIGNED NOT NULL,
`logdate` datetime NOT NULL DEFAULT '0000-00-00 00:00:00',
`sessid` varchar(40) NOT NULL DEFAULT '',
KEY `API_SESSION_USER` (`user_id`),
KEY `API_SESSION_SESSID` (`sessid`),
CONSTRAINT `FK_API_SESSION_USER` FOREIGN KEY (`user_id`) REFERENCES `api_user` (`user_id`) ON DELETE CASCADE ON UPDATE CASCADE
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='Api Sessions'
)
)
[1] => Array
(
[file] => /home/chibal1/public_html/stage/lib/Varien/Db/Adapter/Pdo/Mysql.php
[line] => 397
[function] => raw_query
[class] => Varien_Db_Adapter_Pdo_Mysql
[type] => ->
[args] => Array
(
[0] => CREATE TABLE `api_session` (
`user_id` mediumint(9) UNSIGNED NOT NULL,
`logdate` datetime NOT NULL DEFAULT '0000-00-00 00:00:00',
`sessid` varchar(40) NOT NULL DEFAULT '',
KEY `API_SESSION_USER` (`user_id`),
KEY `API_SESSION_SESSID` (`sessid`),
CONSTRAINT `FK_API_SESSION_USER` FOREIGN KEY (`user_id`) REFERENCES `api_user` (`user_id`) ON DELETE CASCADE ON UPDATE CASCADE
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='Api Sessions'
)
)
[2] => Array
(
[file] => /home/chibal1/public_html/stage/app/code/core/Mage/Core/Model/Resource/Setup.php
[line] => 612
[function] => multi_query
[class] => Varien_Db_Adapter_Pdo_Mysql
[type] => ->
[args] => Array
(
[0] =>
CREATE TABLE `api_session` (
`user_id` mediumint(9) UNSIGNED NOT NULL,
`logdate` datetime NOT NULL DEFAULT '0000-00-00 00:00:00',
`sessid` varchar(40) NOT NULL DEFAULT '',
KEY `API_SESSION_USER` (`user_id`),
KEY `API_SESSION_SESSID` (`sessid`),
CONSTRAINT `FK_API_SESSION_USER` FOREIGN KEY (`user_id`) REFERENCES `api_user` (`user_id`) ON DELETE CASCADE ON UPDATE CASCADE
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='Api Sessions';
)
)
[3] => Array
(
[file] => /home/chibal1/public_html/stage/app/code/core/Mage/Api/sql/api_setup/mysql4-upgrade-0.8.0-0.8.1.php
[line] => 47
[function] => run
[class] => Mage_Core_Model_Resource_Setup
[type] => ->
[args] => Array
(
[0] =>
CREATE TABLE `api_session` (
`user_id` mediumint(9) UNSIGNED NOT NULL,
`logdate` datetime NOT NULL DEFAULT '0000-00-00 00:00:00',
`sessid` varchar(40) NOT NULL DEFAULT '',
KEY `API_SESSION_USER` (`user_id`),
KEY `API_SESSION_SESSID` (`sessid`),
CONSTRAINT `FK_API_SESSION_USER` FOREIGN KEY (`user_id`) REFERENCES `api_user` (`user_id`) ON DELETE CASCADE ON UPDATE CASCADE
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='Api Sessions';
)
)
[4] => Array
(
[file] => /home/chibal1/public_html/stage/app/code/core/Mage/Core/Model/Resource/Setup.php
[line] => 360
[args] => Array
(
[0] => /home/chibal1/public_html/stage/app/code/core/Mage/Api/sql/api_setup/mysql4-upgrade-0.8.0-0.8.1.php
)
[function] => include
)
[5] => Array
(
[file] => /home/chibal1/public_html/stage/app/code/core/Mage/Core/Model/Resource/Setup.php
[line] => 273
[function] => _modifyResourceDb
[class] => Mage_Core_Model_Resource_Setup
[type] => ->
[args] => Array
(
[0] => upgrade
[1] => 0.7.1
[2] => 0.8.1
)
)
[6] => Array
(
[file] => /home/chibal1/public_html/stage/app/code/core/Mage/Core/Model/Resource/Setup.php
[line] => 217
[function] => _upgradeResourceDb
[class] => Mage_Core_Model_Resource_Setup
[type] => ->
[args] => Array
(
[0] => 0.7.1
[1] => 0.8.1
)
)
[7] => Array
(
[file] => /home/chibal1/public_html/stage/app/code/core/Mage/Core/Model/Resource/Setup.php
[line] => 153
[function] => applyUpdates
[class] => Mage_Core_Model_Resource_Setup
[type] => ->
[args] => Array
(
)
)
[8] => Array
(
[file] => /home/chibal1/public_html/stage/app/code/core/Mage/Core/Model/App.php
[line] => 363
[function] => applyAllUpdates
[class] => Mage_Core_Model_Resource_Setup
[type] => ::
[args] => Array
(
)
)
[9] => Array
(
[file] => /home/chibal1/public_html/stage/app/code/core/Mage/Core/Model/App.php
[line] => 295
[function] => _initModules
[class] => Mage_Core_Model_App
[type] => ->
[args] => Array
(
)
)
[10] => Array
(
[file] => /home/chibal1/public_html/stage/app/Mage.php
[line] => 596
[function] => run
[class] => Mage_Core_Model_App
[type] => ->
[args] => Array
(
[0] => Array
(
[scope_code] =>
[scope_type] => store
[options] => Array
(
)
)
)
)
[11] => Array
(
[file] => /home/chibal1/public_html/stage/index.php
[line] => 78
[function] => run
[class] => Mage
[type] => ::
[args] => Array
(
[0] =>
[1] => store
)
)
)
[errorInfo] => Array
(
[0] => HY000
[1] => 1005
[2] => Can't create table './chibal1_magentoNew/api_session.frm' (errno: 121)
)
)