What is the best practice to initialise $wpdb by loading wp-load.php?

What is the best practice to initialise $wpdb by loading wp-load.php?

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