Why do I get jQuery reference error / undefined when changing name of plugin file?

No idea why the change of folder name makes a difference, but you should add jquery as dependency in your enqueue

wp_enqueue_script(
        'wtfjs',
        plugins_url( '/js/wtf.js' , __FILE__),
        array('jquery')
    );   

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