How do I remove spammy links in WP theme footer?

Replace:

$l=" | Theme Designed by: <?php echo wp_theme_credits(0); ?>  | Thanks to <?php echo wp_theme_credits(1); ?>, <?php echo wp_theme_credits(2); ?> and <?php echo wp_theme_credits(3); ?>";

With:

$l=" | Theme Designed by: <?php echo wp_theme_credits(0); ?>";

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