If you are beginner and want to check Wordpress database details then you can follow below steps:
- Login into cpanel.
- Click on "File Manager" and then "public_html" folder.
- After that search "wp-config.php" file and then press right click on it.
- Click on "View" and you can check all your database details like database name, database user, database password etc.