How do I remove ‘www.’ from all internal links in self-hosted multisite?

This could be as simple as going to Settings > General and ensuring that the values for WordPress Address (URL) and Site Address (URL) do not have ‘www’ in the textbox.

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