Advice how to connect custom database with WordPress, change data in WordPress and finaly use this data

Advice how to connect custom database with WordPress, change data in WordPress and finaly use this data

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