Can’t add users in admin after copying database
The key turned out to be that the wp_users table lost its AUTO_INCREMENT setting when it was imported, for unknown reasons; the server may have timed out, etc. I found this out from the wp-cli error in the debug log that said “WordPress database error Duplicate entry ‘1000075’ for key ‘PRIMARY’ for query INSERT INTO … Read more