How to rename a MySQL table

The command to run inside a MySQL/Maria database to rename the table. You can run the following command from within the phpMyAdmin interface or via the console.

RENAME TABLE old_name TO new_name