Get WordPress author link by ID

Not a solution this one, but you maybe be able to use it.
If you add ?author=X (x = id), the URL fetches the Author profile based on the ID.

Example: https://example.com/?author=152

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