MySQLI_Connect Error

I recently started using infinityfree. I was trying to connect to MySQL from my website, and it doesn’t seem to want to connect. After looking on the internet to find an answer, nothing seemed to help. I put in all the information correct, databasename, databaseuser, and password from the cPanel. I’m not sure what else to do, and turned here. The error is

“Error: Unable to connect to MySQL. Error Number: 1045”

Here’s the code, with information like numbers, and passwords changed.

$conn = mysqli_connect("", "rfgd_#", "PASSWORD", "rfgd_#_blog");

Any help would be appreciated.

Thank you.

It decided to work now.