How to display the posts belonging to a paticular category

Use the following codes in the page.php file or in the home page template if you have created any. Use Child theme to edit your theme files

if( is_home() || is_front_page() ) {
    $args = array(
        'posts_per_page'   => -1, // To show all the posts
        'cat' => cat_id // Replace cat_id with the actual category id
    );

    // The Query
    $the_query = new WP_Query( $args );

    // The Loop
    if ( $the_query->have_posts() ) {
        while ( $the_query->have_posts() ) {
            $the_query->the_post();
            echo '<li>' . get_the_title() . '</li>';
        }
    } else {
    // no posts found
    }
    /* Restore original Post Data */
    wp_reset_postdata();
}

For more detail, see the function Reference

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)