What query would I have to use to check if the querying user has permissions to create temporary tables in the database?
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
I do not know if there is an elegant way of doing this with a query, but a “hackish” type of way to do it would be to use a mysql_query() and see if you get a result for that table or an error.
I have not tested this at all, more or less a theory of how it could be done. Alternatively, you can write a script that runs this SQL:
And then loop through that testing if they have access for that table. This would take a bit more work, but at least would not error out. Hope that helps to get you started.