How to add username in toolbar link?

Try pulling in the username directly from WordPress. I don’t think BP will do it for you by default.

global $bp, $wp_admin_bar, $current_user;

$bodytag = str_replace("Admin", "", $current_user->user_login;);

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