Is there a way to get a wordpress user’s metadata using an external script

Is there a way to get a wordpress user’s metadata using an external script

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