how can I make $ work in wordpress for jQuery?

Try this:

jQuery(function ($) {
    /* You can safely use $ in this code block to reference jQuery 
           Call your plugin here
       */
})

I think you already know this. But still for reference http://api.jquery.com/jQuery.noConflict/

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