# Database error in phpmyadmin &  control panel

**URL:** <https://forum.infinityfree.com/t/database-error-in-phpmyadmin-control-panel/10797>\
**Category:** Hosting Support\
**Created:** [January 5, 2019, 9:37am UTC](https://forum.infinityfree.com/t/database-error-in-phpmyadmin-control-panel/10797 "2019-01-05T09:37:39Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![Vaibhavsite](https://forum.infinityfree.com/letter_avatar/vaibhavsite/32/5_5575768a8748004e209b776fc1b2916d.png) [@Vaibhavsite](https://forum.infinityfree.com/u/Vaibhavsite)\
**Post date:** [January 5, 2019, 9:37am UTC](https://forum.infinityfree.com/t/database-error-in-phpmyadmin-control-panel/10797/1 "2019-01-05T09:37:39Z")

</div>

# A Database Error Occurred

Error Number: 1227

Access denied; you need (at least one of) the SHOW DATABASES privilege(s) for this operation

SHOW DATABASES

Filename: core/MY\_Controller.php

Line Number: 24

---

<div class="post-metadata">

**Author:** ![Admin](https://forum.infinityfree.com/user_avatar/forum.infinityfree.com/admin/32/36437_2.png) [@Admin](https://forum.infinityfree.com/u/Admin)\
**Post date:** [January 5, 2019, 11:26am UTC](https://forum.infinityfree.com/t/database-error-in-phpmyadmin-control-panel/10797/2 "2019-01-05T11:26:38Z")

</div>

phpMyAdmin seems to be working fine in general for me. What is the name of the database you're having trouble connecting to?

  

EDIT: I just removed the duplicate topic. Please don't create multiple topics about the same issue, make sure that you post your message to the right category (support questions go to Support Forums, not Other Discussions) and if you feel your message is getting buried beneath other topics, please bump the old topic rather than open a new one.

---

<div class="post-metadata">

**Author:** ![Vaibhavsite](https://forum.infinityfree.com/letter_avatar/vaibhavsite/32/5_5575768a8748004e209b776fc1b2916d.png) [@Vaibhavsite](https://forum.infinityfree.com/u/Vaibhavsite)\
**Post date:** [January 6, 2019, 7:05am UTC](https://forum.infinityfree.com/t/database-error-in-phpmyadmin-control-panel/10797/3 "2019-01-06T07:05:47Z")

</div>

@Admin I Am Getting error here&nbsp;[http://gunwantitextiles.com/?i=1](http://gunwantitextiles.com/?i=1)  
please have a look

---

<div class="post-metadata">

**Author:** ![Admin](https://forum.infinityfree.com/user_avatar/forum.infinityfree.com/admin/32/36437_2.png) [@Admin](https://forum.infinityfree.com/u/Admin)\
**Post date:** [January 6, 2019, 1:21pm UTC](https://forum.infinityfree.com/t/database-error-in-phpmyadmin-control-panel/10797/4 "2019-01-06T13:21:56Z")

</div>

I'm sorry, but is the problem with phpMyAdmin or with your website?

  

If the problem is with your website, note that your database user is not allowed to SHOW DATABASES. You can access the contents of one of the databases you own, but you cannot list which databases are on the server from your own code.

  

Also, if the problem is with phpMyAdmin, is the problem with our phpMyAdmin installation or did you install phpMyAdmin on your own website as well?

---

<div class="post-metadata">

**Author:** ![Vaibhavsite](https://forum.infinityfree.com/letter_avatar/vaibhavsite/32/5_5575768a8748004e209b776fc1b2916d.png) [@Vaibhavsite](https://forum.infinityfree.com/u/Vaibhavsite)\
**Post date:** [January 6, 2019, 1:48pm UTC](https://forum.infinityfree.com/t/database-error-in-phpmyadmin-control-panel/10797/5 "2019-01-06T13:48:08Z")

</div>

@Admin It is website error . Website is developed in PHP Codeingnator framework so what should i do can give the access

---

<div class="post-metadata">

**Author:** ![Admin](https://forum.infinityfree.com/user_avatar/forum.infinityfree.com/admin/32/36437_2.png) [@Admin](https://forum.infinityfree.com/u/Admin)\
**Post date:** [January 7, 2019, 5:38pm UTC](https://forum.infinityfree.com/t/database-error-in-phpmyadmin-control-panel/10797/6 "2019-01-07T17:38:19Z")

</div>

> Vaibhavsite said:
> 
> @Admin It is website error . Website is developed in PHP Codeingnator framework so what should i do can give the access

You should give it a database name to connect to, because for security reasons no PHP software can figure that out on their own.

  

As for how to do that, I don't know. If you wrote the software, try to solve it yourself. If you got the software from someone else, please ask them.

---

<div class="post-metadata">

**Author:** ![Admin](https://forum.infinityfree.com/user_avatar/forum.infinityfree.com/admin/32/36437_2.png) [@Admin](https://forum.infinityfree.com/u/Admin)\
**Post date:** [July 27, 2019, 9:29am UTC](https://forum.infinityfree.com/t/database-error-in-phpmyadmin-control-panel/10797/7 "2019-07-27T09:29:10Z")

</div>


