MySQL bağlantı sorunu

Website URL

https://aksoyyazilim.infinityfree.io/apartman

Error Message

SQLSTATE[HY000] [1045] Access denied for user ‘ifo_43433924’@‘192.168.0.63’ (using password: YES)

Other Information

Hello,

I am experiencing a MySQL connection issue with my PHP application.

MySQL Host: sql202.infinityfree.com
MySQL Username: ifo_43433924
Database: ifo_43433924_apartmanpro
Port: 3306

I can access the database through phpMyAdmin successfully.

However, when I try to connect using PHP PDO, I receive MySQL error 1045 (Access denied).

I have verified the database name, username, hostname and password. I also tested the connection using a separate PHP test script, but the same error occurs.

I have not been able to resolve the issue by updating the MySQL password.

Could you please check whether there is an issue with my MySQL account credentials, permissions or password synchronization?

Thank you for your assistance.

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 username in your error is ifo_43433924, with a lowercase letter “o” after the “if”. Your hosting account username has a zero: if0_43433924. MySQL is rejecting a user that doesn’t exist, which fits the 1045 error. Your PHP code or test script probably has the typo.

The database name looks wrong too. You wrote ifo_43433924_apartmanpro. The account has a database ending in _apartman, with no pro. After you fix the prefix, the name should be if0_43433924_apartman.

Change both values in your config, using a zero in the username. Keep the host sql202.infinityfree.com and use your MySQL password. If it still fails, post the error text again.