Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Cannot alter schema name in MYSQL 5.5 w/ MYSQL Workbench

Tags:

Why I cannot alter my schema name from the MYSQL Workbench? Am i missing something? :(

As you can the name is dissabled

enter image description here

like image 258
GrayFullBuster Avatar asked Dec 03 '12 23:12

GrayFullBuster


People also ask

How do I change the schema name in MySQL Workbench?

To change the name of the default schema, double-click the schema tab. This opens a schema editor window docked at the bottom of the application. To undock or redock this window, double-click anywhere in the editor title bar. To rename the schema, use the field labeled Name.

How do I change a schema on a workbench table?

Right-click on the tables which are on the wrong schema, and select "Copy SQL to clipboard". Paste the script in a new SQL window. Repeat for each table you want to migrate. Edit the script to change the schema name.

How do I give permission to schema in MySQL Workbench?

The Schema Privileges tab refines the way you assign access rights to one or more schemas by user account. To assign privileges to the selected account by schema, do the following: Add a schema entry (or rule) that specifies which schema or schemas apply the selected user account.

How do I rename a schema?

To rename a schema you must also have the CREATE privilege for the database. To alter the owner, you must also be a direct or indirect member of the new owning role, and you must have the CREATE privilege for the database. (Note that superusers have all these privileges automatically.)


1 Answers

There is no RENAME available for schema names. You will have to export the schema, then import with a new database name.

This is a limitation of the MySQL server itself.

like image 105
Gavin Towey Avatar answered Sep 20 '22 03:09

Gavin Towey