W3TC manual cache flush does not work

The working solution is:

<?php
/*
 * Flushing the W3TC Plugin's Cache entirely
 * @package WordPress
 */
ignore_user_abort( true );
include('/home/clients/<client-directory>/<website-directory>' . '/wp-load.php');
w3tc_flush_all();

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