无法在MYSQL 5.5中使用MYSQL Workbench更改模式名称

时间:2021-12-14 03:26:26

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

为什么我不能从MYSQL Workbench改变我的模式名称?我错过了什么吗? :(

As you can the name is dissabled

你可以这个名字是不可取的

无法在MYSQL 5.5中使用MYSQL Workbench更改模式名称

3 个解决方案

#1


32  

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

模式名称没有可用的RENAME。您必须导出架构,然后使用新的数据库名称导入。

This is a limitation of the MySQL server itself.

这是MySQL服务器本身的限制。

#2


1  

Gavin is right, but if your server have phpMyAdmin, you can use it to rename your database (schema):

Gavin是对的,但如果您的服务器有phpMyAdmin,您可以使用它来重命名您的数据库(架构):

  1. Go to your phpMyAdmin URL. Default is http://yourdomain.com/phpMyAdmin/

    转到您的phpMyAdmin URL。默认为http://yourdomain.com/phpMyAdmin/

  2. If prompted, enter your database username and password.

    如果出现提示,请输入数据库用户名和密码。

  3. Click on "Operations" tab.

    单击“操作”选项卡。

  4. Under "Rename database to:" write your new database name.

    在“将数据库重命名为:”下,编写新的数据库名称。

  5. Click "Go" button.

    单击“开始”按钮。

  6. If prompted, click "OK".

    如果出现提示,请单击“确定”。

  7. After some seconds, depending on your database content, you will have your database renamed.

    几秒钟后,根据您的数据库内容,您将重命名您的数据库。

What phpMyAdmin is actually doing is create a new database with your new name, import the content from your current database and delete your current database.

phpMyAdmin实际上在做的是使用您的新名称创建一个新数据库,从当前数据库导入内容并删除当前数据库。

#3


1  

Actually, you can rename database name very easily,

实际上,您可以非常轻松地重命名数据库名称,

  1. go to the top menu -> Database -> reverse engineering, select your database and keep go further until you get the er diagram of your database,
  2. 转到顶部菜单 - >数据库 - >逆向工程,选择您的数据库并继续深入,直到获得数据库的图表,
  3. after the there is an area called Catalog Area under that you can see your database name, right click on that and select edit schema. and change your database name
  4. 在有一个名为Catalog Area的区域之后,您可以看到您的数据库名称,右键单击该区域并选择编辑模式。并更改您的数据库名称
  5. now again go to the top menu -> database -> forward engineering and completed the database engineering using the wizard.
  6. 现在再次转到顶层菜单 - >数据库 - >正向工程并使用向导完成数据库工程。

#1


32  

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

模式名称没有可用的RENAME。您必须导出架构,然后使用新的数据库名称导入。

This is a limitation of the MySQL server itself.

这是MySQL服务器本身的限制。

#2


1  

Gavin is right, but if your server have phpMyAdmin, you can use it to rename your database (schema):

Gavin是对的,但如果您的服务器有phpMyAdmin,您可以使用它来重命名您的数据库(架构):

  1. Go to your phpMyAdmin URL. Default is http://yourdomain.com/phpMyAdmin/

    转到您的phpMyAdmin URL。默认为http://yourdomain.com/phpMyAdmin/

  2. If prompted, enter your database username and password.

    如果出现提示,请输入数据库用户名和密码。

  3. Click on "Operations" tab.

    单击“操作”选项卡。

  4. Under "Rename database to:" write your new database name.

    在“将数据库重命名为:”下,编写新的数据库名称。

  5. Click "Go" button.

    单击“开始”按钮。

  6. If prompted, click "OK".

    如果出现提示,请单击“确定”。

  7. After some seconds, depending on your database content, you will have your database renamed.

    几秒钟后,根据您的数据库内容,您将重命名您的数据库。

What phpMyAdmin is actually doing is create a new database with your new name, import the content from your current database and delete your current database.

phpMyAdmin实际上在做的是使用您的新名称创建一个新数据库,从当前数据库导入内容并删除当前数据库。

#3


1  

Actually, you can rename database name very easily,

实际上,您可以非常轻松地重命名数据库名称,

  1. go to the top menu -> Database -> reverse engineering, select your database and keep go further until you get the er diagram of your database,
  2. 转到顶部菜单 - >数据库 - >逆向工程,选择您的数据库并继续深入,直到获得数据库的图表,
  3. after the there is an area called Catalog Area under that you can see your database name, right click on that and select edit schema. and change your database name
  4. 在有一个名为Catalog Area的区域之后,您可以看到您的数据库名称,右键单击该区域并选择编辑模式。并更改您的数据库名称
  5. now again go to the top menu -> database -> forward engineering and completed the database engineering using the wizard.
  6. 现在再次转到顶层菜单 - >数据库 - >正向工程并使用向导完成数据库工程。