See output of a sql query while plugin installation in wordpress

You could insert a

$wpdb->show_errors(); 

to output the errors in your query.

Also you need to input that sql into

dbDelta($sql)

did you miss that?

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