how to rename a database in sqlyog code example Example: sql server rename database ALTER DATABASE MyTestDatabase MODIFY NAME = MyTestDatabaseCopy ;