Installation is incomplete. Check the console log for errors before trying again.

3.70K 浏览M2安装设置

Installation is incomplete. Check the console log for errors before trying again.

前面步骤一切就绪后,安装到8%时,提示:Installation is incomplete.  Check the console log for errors before trying again.

日志出错信息为:

Module 'Magento_Vault':
Installing schema... 
[ERROR] PDOException: SQLSTATE[42000]: Syntax error or access violation: 1071 Specified key was too long; max key length is 1000 bytes in C:magento4vendormagentozendframework1libraryZendDbStatementPdo.php:228 Stack trace: #0 C:magento4vendormagentozendframework1libraryZendDbStatementPdo.php(228): PDOStatement->execute(Array) #1 C:magento4vendormagentoframeworkDBStatementPdoMysql.php(93): Zend_Db_Statement_Pdo->_execute(Array) #2 C:magento4vendormagentozendframework1libraryZendDbStatement.php(303): MagentoFrameworkDBStatementPdoMysql->_execute(Array) #3 C:magento4vendormagentozendframework1libraryZendDbAdapterAbstract.php(480): Zend_Db_Statement->execute(Array) #4 C:magento4vendormagentozendframework1libraryZendDbAdapterPdoAbstract.php(238): Zend_Db_Adapter_Abstract->query('CREATE TABLE IF...', Array) #5 C:magento4vendormagentoframeworkDBAdapterPdoMysql.php(517): Zend_Db_Adapter_Pdo_Abstract->query('CREATE TABLE IF...', Array) #6 C:magento4vendormagentoframeworkDBAdapterPdoMysql.php(580): MagentoFrameworkDBAdapterPdoMysql->_query('CREATE TABLE IF...', Array) #7 C:magento4vendormagentoframeworkDBAdapterPdoMysql.php(2074): MagentoFrameworkDBAdapterPdoMysql->query('CREATE TABLE IF...') #8 C:magento4vendormagentomodule-vaultSetupInstallSchema.php(130): MagentoFrameworkDBAdapterPdoMysql->createTable(Object(MagentoFrameworkDBDdlTable)) #9 C:magento4setupsrcMagentoSetupModelInstaller.php(868): MagentoVaultSetupInstallSchema->install(Object(MagentoSetupModuleSetup), Object(MagentoSetupModelModuleContext)) #10 C:magento4setupsrcMagentoSetupModelInstaller.php(776): MagentoSetupModelInstaller->handleDBSchemaData(Object(MagentoSetupModuleSetup), 'schema') #11 [internal function]: MagentoSetupModelInstaller->installSchema() #12 C:magento4setupsrcMagentoSetupModelInstaller.php(343): call_user_func_array(Array, Array) #13 C:magento4setupsrcMagentoSetupControllerInstall.php(109): MagentoSetupModelInstaller->install(Array) #14 C:magento4vendorzendframeworkzend-mvcsrcControllerAbstractActionController.php(84): MagentoSetupControllerInstall->startAction() #15 [internal function]: ZendMvcControllerAbstractActionController->onDispatch(Object(ZendMvcMvcEvent)) #16 C:magento4vendorzendframeworkzend-eventmanagersrcEventManager.php(490): call_user_func(Array, Object(ZendMvcMvcEvent)) #17 C:magento4vendorzendframeworkzend-eventmanagersrcEventManager.php(260): ZendEventManagerEventManager->triggerListeners('dispatch', Object(ZendMvcMvcEvent), Object(Closure)) #18 C:magento4vendorzendframeworkzend-mvcsrcControllerAbstractController.php(118): ZendEventManagerEventManager->triggerEventUntil(Object(Closure), Object(ZendMvcMvcEvent)) #19 C:magento4vendorzendframeworkzend-mvcsrcDispatchListener.php(118): ZendMvcControllerAbstractController->dispatch(Object(ZendHttpPhpEnvironmentRequest), Object(ZendHttpPhpEnvironmentResponse)) #20 [internal function]: ZendMvcDispatchListener->onDispatch(Object(ZendMvcMvcEvent)) #21 C:magento4vendorzendframeworkzend-eventmanagersrcEventManager.php(490): call_user_func(Array, Object(ZendMvcMvcEvent)) #22 C:magento4vendorzendframeworkzend-eventmanagersrcEventManager.php(260): ZendEventManagerEventManager->triggerListeners('dispatch', Object(ZendMvcMvcEvent), Object(Closure)) #23 C:magento4vendorzendframeworkzend-mvcsrcApplication.php(340): ZendEventManagerEventManager->triggerEventUntil(Object(Closure), Object(ZendMvcMvcEvent)) #24 C:magento4setupindex.php(35): ZendMvcApplication->run() #25 {main} Next Zend_Db_Statement_Exception: SQLSTATE[42000]: Syntax error or access violation: 1071 Specified key was too long; max key length is 1000 bytes, query was: CREATE TABLE IF NOT EXISTS `vault_payment_token` ( `entity_id` int UNSIGNED NOT NULL auto_increment COMMENT 'Entity Id' , `customer_id` int UNSIGNED NULL COMMENT 'Customer Id' , `public_hash` varchar(128) NOT NULL COMMENT 'Hash code for using on frontend' , `payment_method_code` varchar(128) NOT NULL COMMENT 'Payment method code' , `type` varchar(128) NOT NULL COMMENT 'Type' , `created_at` timestamp NOT NULL default CURRENT_TIMESTAMP COMMENT 'Created At' , `expires_at` timestamp NULL default NULL COMMENT 'Expires At' , `gateway_token` varchar(255) NOT NULL COMMENT 'Gateway Token' , `details` text NULL COMMENT 'Details' , `is_active` bool NOT NULL default '1' COMMENT 'Is active flag' , `is_visible` bool NOT NULL default '1' COMMENT 'Is visible flag' , PRIMARY KEY (`entity_id`), UNIQUE `UNQ_54DCE14AEAEA03B587F9EF723EB10A10` (`payment_method_code`, `customer_id`, `gateway_token`), UNIQUE `VAULT_PAYMENT_TOKEN_HASH_UNIQUE_INDEX_PUBLIC_HASH` (`public_hash`), CONSTRAINT `VAULT_PAYMENT_TOKEN_CUSTOMER_ID_CUSTOMER_ENTITY_ENTITY_ID` FOREIGN KEY (`customer_id`) REFERENCES `customer_entity` (`entity_id`) ON DELETE CASCADE ) COMMENT='Vault tokens of payment' ENGINE=INNODB charset=utf8 COLLATE=utf8_general_ci in C:magento4vendormagentozendframework1libraryZendDbStatementPdo.php:235 Stack trace: #0 C:magento4vendormagentoframeworkDBStatementPdoMysql.php(93): Zend_Db_Statement_Pdo->_execute(Array) #1 C:magento4vendormagentozendframework1libraryZendDbStatement.php(303): MagentoFrameworkDBStatementPdoMysql->_execute(Array) #2 C:magento4vendormagentozendframework1libraryZendDbAdapterAbstract.php(480): Zend_Db_Statement->execute(Array) #3 C:magento4vendormagentozendframework1libraryZendDbAdapterPdoAbstract.php(238): Zend_Db_Adapter_Abstract->query('CREATE TABLE IF...', Array) #4 C:magento4vendormagentoframeworkDBAdapterPdoMysql.php(517): Zend_Db_Adapter_Pdo_Abstract->query('CREATE TABLE IF...', Array) #5 C:magento4vendormagentoframeworkDBAdapterPdoMysql.php(580): MagentoFrameworkDBAdapterPdoMysql->_query('CREATE TABLE IF...', Array) #6 C:magento4vendormagentoframeworkDBAdapterPdoMysql.php(2074): MagentoFrameworkDBAdapterPdoMysql->query('CREATE TABLE IF...') #7 C:magento4vendormagentomodule-vaultSetupInstallSchema.php(130): MagentoFrameworkDBAdapterPdoMysql->createTable(Object(MagentoFrameworkDBDdlTable)) #8 C:magento4setupsrcMagentoSetupModelInstaller.php(868): MagentoVaultSetupInstallSchema->install(Object(MagentoSetupModuleSetup), Object(MagentoSetupModelModuleContext)) #9 C:magento4setupsrcMagentoSetupModelInstaller.php(776): MagentoSetupModelInstaller->handleDBSchemaData(Object(MagentoSetupModuleSetup), 'schema') #10 [internal function]: MagentoSetupModelInstaller->installSchema() #11 C:magento4setupsrcMagentoSetupModelInstaller.php(343): call_user_func_array(Array, Array) #12 C:magento4setupsrcMagentoSetupControllerInstall.php(109): MagentoSetupModelInstaller->install(Array) #13 C:magento4vendorzendframeworkzend-mvcsrcControllerAbstractActionController.php(84): MagentoSetupControllerInstall->startAction() #14 [internal function]: ZendMvcControllerAbstractActionController->onDispatch(Object(ZendMvcMvcEvent)) #15 C:magento4vendorzendframeworkzend-eventmanagersrcEventManager.php(490): call_user_func(Array, Object(ZendMvcMvcEvent)) #16 C:magento4vendorzendframeworkzend-eventmanagersrcEventManager.php(260): ZendEventManagerEventManager->triggerListeners('dispatch', Object(ZendMvcMvcEvent), Object(Closure)) #17 C:magento4vendorzendframeworkzend-mvcsrcControllerAbstractController.php(118): ZendEventManagerEventManager->triggerEventUntil(Object(Closure), Object(ZendMvcMvcEvent)) #18 C:magento4vendorzendframeworkzend-mvcsrcDispatchListener.php(118): ZendMvcControllerAbstractController->dispatch(Object(ZendHttpPhpEnvironmentRequest), Object(ZendHttpPhpEnvironmentResponse)) #19 [internal function]: ZendMvcDispatchListener->onDispatch(Object(ZendMvcMvcEvent)) #20 C:magento4vendorzendframeworkzend-eventmanagersrcEventManager.php(490): call_user_func(Array, Object(ZendMvcMvcEvent)) #21 C:magento4vendorzendframeworkzend-eventmanagersrcEventManager.php(260): ZendEventManagerEventManager->triggerListeners('dispatch', Object(ZendMvcMvcEvent), Object(Closure)) #22 C:magento4vendorzendframeworkzend-mvcsrcApplication.php(340): ZendEventManagerEventManager->triggerEventUntil(Object(Closure), Object(ZendMvcMvcEvent)) #23 C:magento4setupindex.php(35): ZendMvcApplication->run() #24 {main}

不知要怎么解决呢,求答案

0