Some hosters let your script CREATE DATABASE, some do not, and require you to use their control panels instead. How do I check whether database would let me run this query with given user/password without actually creating any databases?
Because if I don’t have enough rights, I just want to hide the “Create database” button from UI altogether.
I’m using PHP and MySQL. Thanks.