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

alter database syntax support. #4641

Closed
winkyao opened this issue Sep 26, 2017 · 3 comments
Closed

alter database syntax support. #4641

winkyao opened this issue Sep 26, 2017 · 3 comments

Comments

@winkyao
Copy link
Contributor

winkyao commented Sep 26, 2017

TiDB:

mysql> alter database test1 character set utf8 COLLATE uft8_general_ci;
ERROR 1105 (HY000): line 0 column 14 near " test1 character set utf8 COLLATE uft8_general_ci" (total length 63)
mysql> alter database test1 character set utf8 COLLATE uft8_general_ci;
ERROR 1105 (HY000): line 0 column 14 near " test1 character set utf8 COLLATE uft8_general_ci" (total length 63)

see https://dev.mysql.com/doc/refman/5.7/en/alter-database.html

@morgo
Copy link
Contributor

morgo commented Sep 19, 2018

It would be great to see this added :-)

There is a use case to ALTER DATABASE and change the character set to utf8mb4, as some applications know to use this over MySQL's utf8.

It is, of course, possible to set each individual table to utf8mb4, but this is more work.

@gregwebs
Copy link
Contributor

I noticed this today. This error message is very poor, pointing to a location that is already past the error. Much better would be "ALTER DATABASE not supported".

@winkyao
Copy link
Contributor Author

winkyao commented Jul 23, 2019

alter database is supported in #10393, so I close this issue

@winkyao winkyao closed this as completed Jul 23, 2019
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

3 participants