Link to a custom page without a permalink?

First of all thank you to @jdm2112 for such a quick response. I was able to serve a custom page by creating a page from inside the WordPress admin panel to get a permalink wordpress.live/blogs. After that I setup my page.php to loop through all the posts using the following code

<?php get_header();?>
        <?php $wpdb = new WP_Query(array(
            'post_type'=>'post',
            'post_status' => 'published',
            'posts_per_page' => -1));

            if($wpdb->have_posts()):
                while($wpdb->have_posts()):
                    $wpdb->the_post();?>
            <?php
            // This calls the blogs.php that has the custom layout for blog listing.
            get_template_part('blogs');
                // echo the_title();
                endwhile;
            endif;
            ?>
<?php get_footer();?>

simply calling the_title() from blogs.php prints out the all the posts title.
Blogs.php

 the_title();

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