uberhacker / shrink-ibdata1

Bash shell script to shrink /var/lib/mysql/ibdata1 and restore disk space
GNU General Public License v3.0
24 stars 8 forks source link

Escape database names in mysql commands #3

Closed gms8994 closed 6 years ago

gms8994 commented 6 years ago

Database names that don't conform to a normal standard (ex: ones that have a "-" in them) will fail to drop and potentially cause issues. This PR uses MySQL quoting to make sure that they will be dropped appropriately.

uberhacker commented 6 years ago

Thank you for the update @gms8994! Makes sense.