How to show months in wordpress archive page?

Try to use this,

<?php wp_get_archives( array( 'type' => 'monthly', 'limit' => 12 ) ); ?>

Refer to the codex for further customisation,

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