SQL RENAME DATABASE is used when you need to change the name of your database. Sometimes it is used because you think that the original name is not more relevant to the database or you want to give a temporary name to that database.
Let's see how to rename MySql and SQL Server databases.
To rename the mysql database, you need to follow the following syntax:
This command is useful for SQL server 2005, 2008, 2008R2 and 2012.
If you are using SQL server 2000, you can also use this command to rename the database. But, Microsoft phased out it.