is_main_site() Always Returns True

I am not calling it inside of a hook but just straight away as the first thing in a MU plugin.

At that point all the info you are requesting won’t be available. That’s running before any hook and before WP is fully loaded.

Use a hook like wp_loaded, admin_init, after_setup_theme … whatever serves your purpose best.

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