Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

modify the database name #6072

Closed
kylezhang opened this issue Mar 15, 2018 · 1 comment
Closed

modify the database name #6072

kylezhang opened this issue Mar 15, 2018 · 1 comment

Comments

@kylezhang
Copy link

Please answer these questions before submitting your issue. Thanks!

  1. What did you do?

How to quickly modify the database name?
For example: myDatabase1 => myDatabase2

  1. What did you expect to see?

  2. What did you see instead?

  3. What version of TiDB are you using (tidb-server -V or run select tidb_version(); on TiDB)?

TiDB-1.0.0

@XuHuaiyu
Copy link
Contributor

XuHuaiyu commented Mar 15, 2018

@kylezhang
Suppose you want to rename database test to test2.

create database test2;
alter table test.table_name rename as test2.table_name;

@ngaut ngaut closed this as completed Mar 19, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants