大神,请问下每次安装出现问题

magento2安装到50%就出问题,首先环境是检测通过的,php7.013 mysql5.7 nginx1.8+

Module ‘Magento_Directory’:
Installing data…
[ERROR] PDOException: SQLSTATE[23000]: Integrity constraint violation: 1062 Duplicate entry ‘AE’ for key ‘PRIMARY’ in F:\Visual-NMP-x86\www\magento2\vendor\magento\zendframework1\library\Zend\Db\Statement\Pdo.php:228 Stack trace: #0 F:\Visual-NMP-x86\www\magento2\vendor\magento\zendframework1\library\Zend\Db\Statement\Pdo.php(228): PDOStatement->execute(Array) #1 F:\Visual-NMP-x86\www\magento2\lib\internal\Magento\Framework\DB\Statement\Pdo\Mysql.php(93): Zend_Db_Statement_Pdo->_execute(Array) #2 F:\Visual-NMP-x86\www\magento2\vendor\magento\zendframework1\library\Zend\Db\Statement.php(303): Magento\Framework\DB\Statement\Pdo\Mysql->_execute(Array) #3 F:\Visual-NMP-x86\www\magento2\vendor\magento\zendframework1\library\Zend\Db\Adapter\Abstract.php(480): Zend_Db_Statement->execute(Array) #4 F:\Visual-NMP-x86\www\magento2\vendor\magento\zendframework1\library\Zend\Db\Adapter\Pdo\Abstract.php(238): Zend_Db_Adapter_Abstract->query(‘INSERT INTO d...', Array) #5 F:\Visual-NMP-x86\www\magento2\lib\internal\Magento\Framework\DB\Adapter\Pdo\Mysql.php(517): Zend_Db_Adapter_Pdo_Abstract->query('INSERT INTOd…’, Array) #6 F:\Visual-NMP-x86\www\magento2\lib\internal\Magento\Framework\DB\Adapter\Pdo\Mysql.php(580): Magento\Framework\DB\Adapter\Pdo\Mysql->_query(‘INSERT INTO d...', Array) #7 F:\Visual-NMP-x86\www\magento2\lib\internal\Magento\Framework\DB\Adapter\Pdo\Mysql.php(2005): Magento\Framework\DB\Adapter\Pdo\Mysql->query('INSERT INTOd…’, Array) #8 F:\Visual-NMP-x86\www\magento2\app\code\Magento\Directory\Setup\InstallData.php(294):

主键重复了.你可以尝试以下操作:

  1. 删除数据库,并重新建立
  2. 重新建立数据库
  3. 增加php运行时间和内存.
  4. 再次尝试安装.

如果还不成果,请再回复你的报错.

1 个赞

厉害,3点还不睡觉
//我试试


老大,安装了一个晚上到了98%就不动了,首页打开界面是这样的是什么情况

这个显示证明已经安装成功了,需要创建静态文件。
如果安装有问题,可以去 magento专用服务器,下单购买虚拟空间。
windows确实会经常有莫名其妙的问题