MySQL database permission error 1044 – account if0_43113894

Website URL

https://aiqeengenharia.42web.io

Error Message

Hello,

I am having a MySQL database permission problem with my InfinityFree hosting account.

Hosting account:
if0_43113894

Website:
https://aiqeengenharia.42web.io

MySQL host:
sql108.infinityfree.com

MySQL database:
if0_43113894_aiqe

MySQL username:
if0_43113894

The PHP connection to the MySQL server works successfully, but PHP cannot select/use the database.

I tested the connection in PHP and got:

“1. SERVIDOR MYSQL OK! :white_check_mark:”

However, when I try to select the database using:

USE if0_43113894_aiqe

I get:

SQLSTATE[HY000] [1044] Access denied for user ‘if0_43113894’@‘192.168.0.%’ to database ‘if0_43113894_aiqe’

The database is visible in the InfinityFree MySQL Databases section and I can open it successfully through phpMyAdmin.

The database also contains 6 tables:

  • users
  • clients
  • appointments
  • proposals
  • proposal_items
  • documents

I am using the primary MySQL username shown in the InfinityFree control panel.

Could you please check the MySQL permissions/association for this database and user?

I do NOT want the database deleted or recreated because the tables and data are already there.

Thank you!

Other Information

Hello,

I am having a MySQL database permission problem with my InfinityFree hosting account.

Hosting account:
if0_43113894

Website:
https://aiqeengenharia.42web.io

MySQL host:
sql108.infinityfree.com

MySQL database:
if0_43113894_aiqe

MySQL username:
if0_43113894

The PHP connection to the MySQL server works successfully, but PHP cannot select/use the database.

I tested the connection in PHP and got:

“1. SERVIDOR MYSQL OK! :white_check_mark:”

However, when I try to select the database using:

USE if0_43113894_aiqe

I get:

SQLSTATE[HY000] [1044] Access denied for user ‘if0_43113894’@‘192.168.0.%’ to database ‘if0_43113894_aiqe’

The database is visible in the InfinityFree MySQL Databases section and I can open it successfully through phpMyAdmin.

The database also contains 6 tables:

  • users
  • clients
  • appointments
  • proposals
  • proposal_items
  • documents

I am using the primary MySQL username shown in the InfinityFree control panel.

Could you please check the MySQL permissions/association for this database and user?

I do NOT want the database deleted or recreated because the tables and data are already there.

Thank you!

Welcome to the InfinityFree community forum! Good to have you here.

  • Most people answering here are volunteers. They’re often the fastest source of help. Admin (the only staff member) checks in about once a day for issues on our end.
  • Volunteers can’t see your account or website. Share what you actually see, like error messages and what happens when you try something. That’s more useful than your theory of what’s wrong.
  • AI tools often get InfinityFree wrong. If a volunteer’s advice differs from what an AI told you, please try the volunteer’s suggestion first.
  • Solving an issue is a joint effort. Try the suggestions you get and report back what happened.

Beep boop, I’m a bot! I dug through the forum to get you started. I sometimes get things wrong though, so do with this what you will until a human has a look.

The article I found says this error means the user connected fine but isn’t allowed to use the database name it was given. That fits what you’re seeing, since the server login works and only the database selection fails.

Here’s the article:

It says the usual cause is a database name that doesn’t exactly match the one in the control panel. It can also be a wrong password. Your login to the server succeeded, so I’d look at the name first.

Can you copy the database name straight from the MySQL Databases section of your control panel and compare it character by character with the one in your script? Stray spaces, a different case or a lookalike character can all cause this. Then can you post the lines of your PHP that set the host, database name and username, with the password removed?

If the name matches exactly and it still fails, I can’t confirm that from here. A person would need to look at how the database is linked to the user.

I checked your account and there is no database if0_43113894_aiqe. There is one named if0_43113894_aieq that has the six tables you listed.

We have the “Access denied for user” error listed in this article, and it specifically lists wrong database name as being the most common cause.

And given that that’s clearly a problem here too, please try updating the database name in your website and see if that solves the issue, because it probably isn’t a user permission issue.