Knowing blog name using blog id

You are looking for get_blog_details function.

$blog_details = get_blog_details( $blog_id );

Here is the official documentation.

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