get_comment_meta not behaving as expected

Actually this is what you need to use.

<?php echo get_comment_meta( $comment->comment_ID, 'rating', $rating ); ?>

IDs are already stored in $comment array.

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