Problem in connecting with db with correct credentials

Error : (1045) ProxySQL Error: Access denied for user ‘foodappadmin’@‘2a02:4780:bad:f00d::4’ (using password: YES)

please help me with this error i cant seem to acces the db

  1. The username password is correct im sure of it
  2. my connection string $mysqli = new mysqli(‘localhost’, ‘id15145587_foodappadmin’, ‘XXXXXXX’, ‘id15145587_foodapp’);
    i’ve used the same con string on local server
  3. my website link https://allfoodapp060699.000webhostapp.com/
  4. I checked my server is localhost only
  5. My php version and the php version of the website is same

i know this could be some silly error im sorry if it is

As you’ve mentioned the error shows you are using the wrong username.
Check all your config files and ensure they use the correct format id123456_example