<p>How can I find what databases I have a minimum of read access to in either basic SQL, MySQL specific or in PHP?</p>

[{'answer_id': 63869, 'author': 'Jay Shepherd', 'author_id': 7511, 'author_profile': 'https://Stackoverflow.com/users/7511', 'pm_score': 1, 'selected': False, 'text': '<p>In MySQL, you can execute </p>\n\n<p><code>SHOW DATABASES;</code></p>\n\n<p><strong>Description</strong></p>\n\n<p><code>SHOW DATABASES;</code>to see what you have at least minimal access to. Are you looking for something more programmatic?</p>\n'}, {'answer_id': 157565, 'author': 'Harrison Fisk', 'author_id': 16111, 'author_profile': 'https://Stackoverflow.com/users/16111', 'pm_score': 4, 'selected': True, 'text': '<p>There is a command in MySQL which can show you all of the permissions you have.  The command is:</p>\n\n<pre>\nSHOW GRANTS;\n</pre>\n\n<p>It will give you output similar to:</p>\n\n<pre>\nroot@(none)~> show grants;\n+---------------------------------------------------------------------+\n| Grants for root@localhost                                           |\n+---------------------------------------------------------------------+\n| GRANT ALL PRIVILEGES ON *.* TO \'root\'@\'localhost\' WITH GRANT OPTION | \n+---------------------------------------------------------------------+\n1 row in set (0.00 sec)\n</pre>\n\n<p>This is documented at in the <a href="http://dev.mysql.com/doc/refman/5.0/en/show-grants.html" rel="noreferrer">manual here</a>.</p>\n'}, {'answer_id': 628669, 'author': 'SeanJA', 'author_id': 75924, 'author_profile': 'https://Stackoverflow.com/users/75924', 'pm_score': 1, 'selected': False, 'text': '<p>You could also try connecting to the database with phps mysql_connect(...) will tell you quickly whether or not you have access.</p>\n'}]
['https://Stackoverflow.com/questions/63764', 'https://Stackoverflow.com', 'https://Stackoverflow.com/users/115/']