Showing results for 
Search instead for 
Did you mean: 

Error installing

Error installing

PDOException: SQLSTATE[23000]: Integrity constraint violation: 1062 Duplicate entry 'AD' for key 'PRIMARY' in C:\wamp64\www\magento2\vendor\magento\zendframework1\library\Zend\Db\Statement\Pdo.php:228

getting this error at installing data module
i have done uninstalling and installing again removing entire DB the again installing it please help me out

Tags (1)

Re: Error installing

 looks like you had a previous installation and hence db was not clean.


Please clean your db (drop database and re-create) and try again. Alternatively, you can run 

bin/magento setup:uninstall

 which will and try again.


Another possible solution is - Might be database was imported before, so delete it and re-installed it for the same.


if issue solved,Click Kudos & Accept as Solution

Re: Error installing

Sometime when u uninstall it doesn't remove DB entries as it might be in use somewhere. Its better you go to phpMyAdmin and "Drop" your DB and then start the re-installation of M2.


Hope this help.