Search code examples
phpmysqldatabasemysql-error-1064

How to check a mysql table accessible or not via php


I have self hosted web application and I'm trying to access information_schema table some how it can be disabled in some servers. How can check it whether it is accessible or not?


Solution

  • Run SHOW DATABASES and see if information_schema is in the list.

    But this shouldn't matter right? If you're self hosting you can configure it however you need it.