Is there way in MySQL to prevent someone from creating tables and/or databases with hyphens? (Other than striping privileges from the user.)
For example, if we have user IamADummy who wants to do this,
CREATE TABLE `I-am-a-bad-table-name`;
OR
CREATE DATABASE `Bad-Idea`;
Is there a setting that would stop the user from doing so?
Thanks!
The only restrictions on table identifiers are as follows:
In order to have any other restrictions, you would have to examine the query in your system before running it and adjust it appropriately.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With