# Database acess denied

**URL:** <https://forum.infinityfree.com/t/database-acess-denied/19849>\
**Category:** Hosting Support\
**Created:** [August 21, 2019, 6:38pm UTC](https://forum.infinityfree.com/t/database-acess-denied/19849 "2019-08-21T18:38:02Z")\
**Posts on this page:** 11\
**Page:** 1

<div class="post-metadata">

**Author:** ![anon749552](https://forum.infinityfree.com/letter_avatar/anon749552/32/6_22734026db12803ebb3e059622ac3534.png) [@anon749552](https://forum.infinityfree.com/u/anon749552)\
**Post date:** [August 21, 2019, 6:38pm UTC](https://forum.infinityfree.com/t/database-acess-denied/19849/1 "2019-08-21T18:38:02Z")

</div>

**My website URL is:**  
[http://www.augustofrr.ga/portfolio/battle/lista\_questoes.php](http://www.augustofrr.ga/portfolio/battle/lista_questoes.php)

**What I’m seeing is:**  
Acess denied for user ‘epiz\_2419…’ (using password: YES)

**I’m using this software:**  
File Manager and MySQL PHP

**Additional information:**

I’ve read some topics and checked [https://infinityfree.net/support/common-mysql-errors/](https://infinityfree.net/support/common-mysql-errors/)

Still unable to connect, I’m pretty sure i’m writing the right password and database name

---

<div class="post-metadata">

**Author:** ![anon57849175](https://forum.infinityfree.com/letter_avatar/anon57849175/32/6_22734026db12803ebb3e059622ac3534.png) [@anon57849175](https://forum.infinityfree.com/u/anon57849175)\
**Post date:** [August 21, 2019, 6:44pm UTC](https://forum.infinityfree.com/t/database-acess-denied/19849/2 "2019-08-21T18:44:28Z")

</div>

From the same article you posted, but edited by me:

> ##### Access denied for user
> 
> You can see an error message which looks like `Access denied for user 'epiz_12345678'@'192.168.0.*' (using password: YES)`. This message means that the user was able to connect, but does not have access to the provided database name.
> 
> This could mean one of two things.
> 
> This generally means that the database name is not correct. If you entered the database name `my_database` when creating the database, the full database name looks like `epiz_12345678_my_database`. You can find the database name in the MySQL Databases menu as well.
> 
> It could also mean that your database password is incorrect. The database password is the same as your hosting account password (which is generally different from your client area password!). You can find your hosting account password by logging in to your client area, selecting the hosting account, scrolling down to “Account Details” and clicking on “Show/Hide” to show the password.

---

<div class="post-metadata">

**Author:** ![anon19508339](https://forum.infinityfree.com/letter_avatar/anon19508339/32/6_22734026db12803ebb3e059622ac3534.png) [@anon19508339](https://forum.infinityfree.com/u/anon19508339)\
**Post date:** [August 21, 2019, 6:55pm UTC](https://forum.infinityfree.com/t/database-acess-denied/19849/3 "2019-08-21T18:55:26Z")

</div>

when you’re telling it’s correct:

db passwords should be same with your cpanel one. if you change your cpanel password it won’t change db passwords 😕

you can want admin to refresh your db permissions if you’ve changed your cpanel password

---

<div class="post-metadata">

**Author:** ![anon749552](https://forum.infinityfree.com/letter_avatar/anon749552/32/6_22734026db12803ebb3e059622ac3534.png) [@anon749552](https://forum.infinityfree.com/u/anon749552)\
**Post date:** [August 21, 2019, 7:01pm UTC](https://forum.infinityfree.com/t/database-acess-denied/19849/4 "2019-08-21T19:01:40Z")

</div>

I’ve tried this:  
$con = mysqli\_connect(“[sql303.epizy.com](http://sql303.epizy.com)”, “epiz\_24197726”, “PLa\*\*\*\*\*”, “epiz\_24197726\_BattleDatabase”);

the password is the same as shown in account details, but…

 ![Sem%20t%C3%ADtulo](https://forum-cdn.infinityfree.net/original/2X/2/2795319e1585de7f12f50568b58aecaf1b545291.png)

Not working…

---

<div class="post-metadata">

**Author:** ![anon57849175](https://forum.infinityfree.com/letter_avatar/anon57849175/32/6_22734026db12803ebb3e059622ac3534.png) [@anon57849175](https://forum.infinityfree.com/u/anon57849175)\
**Post date:** [August 21, 2019, 7:02pm UTC](https://forum.infinityfree.com/t/database-acess-denied/19849/5 "2019-08-21T19:02:21Z")

</div>

Then it’s most likely that your database permissions are corrupted, and need to be reset.

---

<div class="post-metadata">

**Author:** ![anon749552](https://forum.infinityfree.com/letter_avatar/anon749552/32/6_22734026db12803ebb3e059622ac3534.png) [@anon749552](https://forum.infinityfree.com/u/anon749552)\
**Post date:** [August 21, 2019, 7:03pm UTC](https://forum.infinityfree.com/t/database-acess-denied/19849/6 "2019-08-21T19:03:04Z")

</div>

if I recreate the database, the new password will work with it?

---

<div class="post-metadata">

**Author:** ![anon57849175](https://forum.infinityfree.com/letter_avatar/anon57849175/32/6_22734026db12803ebb3e059622ac3534.png) [@anon57849175](https://forum.infinityfree.com/u/anon57849175)\
**Post date:** [August 21, 2019, 7:15pm UTC](https://forum.infinityfree.com/t/database-acess-denied/19849/8 "2019-08-21T19:15:32Z")

</div>

You can try to do it. If it works, then you will thank me. If not, recreate it with another name and update the database details to use the new database name.

---

<div class="post-metadata">

**Author:** ![anon749552](https://forum.infinityfree.com/letter_avatar/anon749552/32/6_22734026db12803ebb3e059622ac3534.png) [@anon749552](https://forum.infinityfree.com/u/anon749552)\
**Post date:** [August 21, 2019, 8:02pm UTC](https://forum.infinityfree.com/t/database-acess-denied/19849/9 "2019-08-21T20:02:39Z")

</div>

Yep, It worked, thanks!

---

<div class="post-metadata">

**Author:** ![anon57849175](https://forum.infinityfree.com/letter_avatar/anon57849175/32/6_22734026db12803ebb3e059622ac3534.png) [@anon57849175](https://forum.infinityfree.com/u/anon57849175)\
**Post date:** [August 21, 2019, 8:03pm UTC](https://forum.infinityfree.com/t/database-acess-denied/19849/10 "2019-08-21T20:03:08Z")

</div>

And, BayoDino is a woman, not a man like me.

---

<div class="post-metadata">

**Author:** ![anon749552](https://forum.infinityfree.com/letter_avatar/anon749552/32/6_22734026db12803ebb3e059622ac3534.png) [@anon749552](https://forum.infinityfree.com/u/anon749552)\
**Post date:** [August 21, 2019, 8:04pm UTC](https://forum.infinityfree.com/t/database-acess-denied/19849/11 "2019-08-21T20:04:42Z")

</div>

Oh, sorry, I didn’t notice that

Sorry BayoDino, I won’t make this mistake again

---

<div class="post-metadata">

**Author:** ![system](https://infinityfree-forum-uploads.s3.dualstack.eu-central-1.amazonaws.com/original/3X/b/0/b024fd3fa88bae093c9576e55c2c94e33f890206.svg) [@system](https://forum.infinityfree.com/u/system)\
**Post date:** [September 20, 2019, 8:04pm UTC](https://forum.infinityfree.com/t/database-acess-denied/19849/12 "2019-09-20T20:04:50Z")

</div>

Closed on September 20, 2019, 8:04pm UTC

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
