How to shows CPT which has specific meta key?

If you only want to get the CPT that have the meta_key, then u can remove value and compare and it should work.

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