Assign Content of Deleted Anonymous User to a Real User using mysql command as there is no option of doing this from wordpress dashboard.
1. Create a user from admin panel and note down the userid. Suppose it is 1623.
2. Then run the following SQL query.
UPDATE wp_posts SET post_author=1623 WHERE post_author=0;