How can I call wp-load.php in my plugin file

To call wp-load.php outside wordpress, for example in your case to do some quick ajax stuff, add the following code on the top of your php file.

<?php include($_SERVER['DOCUMENT_ROOT'].'/wp-load.php');?>

But as @fuxia said is better to use the WP AJAX API especially if you create a plugin .

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