I created the database through VistaPanel and successfully imported it through phpMyAdmin. phpMyAdmin can access the database, but PHP scripts hosted on the same InfinityFree account cannot connect.
I copied the hosting account password directly from Account Details, not my Client Area password.
The PHP application is hosted inside the same InfinityFree account.
The database exists, and phpMyAdmin can access it successfully.
I temporarily enabled mysqli exception output. The complete error from PHP is:
mysqli_sql_exception: Connection refused
This is not “Access denied” or “No such file or directory.” Could you please check whether web hosting account if0_42532881 can reach SQL server sql303 internally?
Please be aware that the status page is partially populated by what I can monitor myself from the outside, and partially based on user reports. Monitoring the database servers remotely is not possible, so I would need someone to see an issue and me to confirm it so I can put up a message on the status page.
But a Connection Refused error is odd. That’s not an authentication issue, it’s a connection issue, so either you’re using the wrong hostname or something is wrong inside the platform. But if phpMyAdmin works, it also means the database is up, which makes it more confusing.