How to change table name in MySQL? i want to change table name in mysql it seems easy but every times gives a error

I want to change table name
    from qwerty to qwerty_2

So, how can i do so?

Any help will be appreciated thanks
There are two ways

ALTER TABLE qwerty RENAME qwerty_2;


or

RENAME TABLE qwerty TO qwerty_2;