the problem is that there are several identical records, so the PK is not being created, how do I delete all duplicate records?
I have the same problem, I already executed the query in phpmyadmin but it gives the same error Error updating record: Duplicate entry ‘30177-1’ for key ‘PRIMARY’
Faz o seguinte, renomeia a pasta do woocomerce na pasta plugins, e joga a versão desejada lá na pasta plugins.