Rename Database - Online SQL Generator

Form for generating SQL query for MySQL

This form allows you to generate sql query for rename database:

Your generated sql can be seen below.

Result of sql generation

Move to «Paste Code» for Save it

About "Rename database MySQL generator"

About this tool

The Rename Database MySQL Generator was created to help with generating MysQL query for "Rename Database". No need to remember syntax and type required data, now you can easily generate an MySQL query online.

How it Works?

Just enter your "Old Database Name" and "New Database Name" to the input above then click to the button "Generate" and you will get your MySQL query.


Make sure you have admin privilege before renaming any database. Once a database is renamed, you can check it in the list of databases with the following SQL command: SHOW DATABASES;


Generator may contain errors, You execute queries at your own risk.


Did you like this tool? You can donate to us. This will help us improve our free web tools.