do_action pass array argument as reference not copy [duplicate]

The way to pass by reference to a WP action is with:
do_action_ref_array('action_hook', array(&$data) );

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