How to make a php script(app) accessible to all wordpress subdomains in a wordpress multisite configuration?

How to make a php script(app) accessible to all wordpress subdomains in a wordpress multisite configuration?

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