tags:

views:

85

answers:

2

Is it possible to rename a MySQL table? If so, how?

+7  A: 

You can use RENAME TABLE

RENAME TABLE `foo` TO `bar`;

or ALTER TABLE

ALTER TABLE `foo` RENAME TO `bar`;
Greg
A: 

If you're using MySQL Query Browser, you can just right-click on the table, select Edit Table and change the Table Name field and apply the changes.

jamesaharvey
i do not recommend using this tool, because it caused many syntax errors ;)
daemonfire300