MYSQL: Create and grant privileges only if user doesn't exist

后端 未结 0 1088
傲寒
傲寒 2020-12-06 15:35

I want to test if a user exists. If it does I should do nothing. If it doesn\'t I should create it and grant privileges.

The concept code that I came up with is this:

相关标签:
回答
  • 消灭零回复
提交回复
热议问题