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

SQL FLUSH PRIVILEGES problem #674

Closed
denisbertini opened this issue Dec 4, 2015 · 2 comments
Closed

SQL FLUSH PRIVILEGES problem #674

denisbertini opened this issue Dec 4, 2015 · 2 comments
Labels
type/question The issue belongs to a question.

Comments

@denisbertini
Copy link

Hi Guys,
trying to create a user i am facing the following problem when
using the command
mysql> flush privileges;
ERROR 1105 (HY000): line 1 column 1 near "flush"

Somehow the SQL statement is not recognise ... ( in use the tidb-server mode)

Any idea ?
Is there a specific way to create User and grant privileges using tidb ?

Thanks in advance !
Denis

@shenli
Copy link
Member

shenli commented Dec 4, 2015

hi @denisbertini Thanks for your report.

TiDB support some of the privilege sql statements such as CreateUser and Grant statement.
You can try statements like "CREATE USER 'monty'@'localhost' IDENTIFIED BY 'some_pass';" and "GRANT ALL PRIVILEGES ON . TO 'monty'@'localhost';".
Please refer to mysql reference manual. http://dev.mysql.com/doc/refman/5.7/en/create-user.html http://dev.mysql.com/doc/refman/5.7/en/grant.html.

Flush statement is not supported now. We will work on it.

@denisbertini
Copy link
Author

Well ok !
For now i can connect the tiDB only with root and empty password.
I am nevertheless facing others issues when creating table ... i have to study what is
happening and give you a report...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type/question The issue belongs to a question.
Projects
None yet
Development

No branches or pull requests

4 participants