I have a mysql database with about 8 tables that all begin with a capital letter. Any quick way to lowercase them all? Or even one by one... if i try this, RENAME TABLE Contacts TO contacts
it says ERROR 1050 (42S01): Table 'contacts' already exists
Use two renames - first to a temp name and then to the lowercased:
RENAME TABLE Contacts TO contacts_
and then
RENAME TABLE contacts_ TO contacts
Of course, you should be careful not to try using an already existing table name, but if you initially had tables 'Contacts' and 'contacts_' I'd say you have way more serious problems than the case.
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