add_action wp_ajax_ not loading in plugin file WP Network

Instead of using get_admin_ajax_path() use self_admin_url( 'admin-ajax.php' ) which retrieves the URL to the ajax address for either the current site or the network.

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