Follow these simple steps when you experience – WordPress “Could not insert post into the database”
Login to PhpMyAdmin
→ Go to wp_post
→ Structure
→ ID (Select and Edit)
→ Check this box [A_I]
Save and Try inserting the image via Media uploader.
Hope this fix the issue.