PHP Mysql Access Denied

I have looked through multiple threads created on this topic and have tried a lot of solutions. However, I am not progressing anywhere.

When I try to connect to my database I am prompted with “Access denied for user” - where user name is the correct user and some IP address (I do not know where that is coming from).

I have allowed hosts: - [The IP address listed above]

Can anyone help me out?
UPDATE: had to use only “%” on a new line in allowable hosts… Not sure if this is the best way to go about it but it seems to be working properly.