how to identify a multisite installation

The most obvious choice would be the is_multisite() conditional template tag.

Used as such:

if ( is_multisite() ) {
    // Multisite is enabled;
    // do something
}

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