Google analytics not working on WordPress

After reading more about the google analytic site, I found that it can take a while for analytics to start working. After waiting a full night, analytics is now working perfectly.

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