You can easily find the post ID in database with below steps:
- Login to cpanel.
- Click on phpmyadmin under database section.
- Now click on particular database and you will find the table with name wp-posts.
- You will see all the data of your wordpress post and here will you will see the post ID column too.
- You can check all the post ID details here.