-
-
Notifications
You must be signed in to change notification settings - Fork 526
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
Dolt's disappearing root
user is confusing
#5759
Comments
To add to this, we chose this behavior as our default root user is not password-protected. In MySQL, the default root account has a password or certificate that is specified by the user. To ease adoption, if no users exist, then we accept connections that specify Also at the time, we identified the potential confusion that this behavior could cause, and since the workaround was to restart the server with |
I think we should change to match MySQL's behavior: create the That root user will be scoped only to localhost, so I'm not concerned about sql-servers being unprotected. If someone is already on localhost, then they can of course just access all the data through the CLI anyway. I like the intention behind trying to keep sql-servers safe, but I think the behavior difference from MySQL will continue to surprise and confuse people. If the |
We helped another customer bit by this last week and suspect other customers are probably hitting it without letting us know, too. |
I had the chance to sit with a new Dolt customer recently and the behavior around the
root
user changing based on what you specify or don't specify when you start a sql-server and whether or not you create any additional users is a sharp edge that confused the customer and made them think there was something buggy about Dolt.This behavior is very easy to trigger with common usage patterns. Users just start a sql-server with the default options:
Then they connect and start creating users for their application:
The next time they need to restart their sql-server, the
root
account will have mysteriously disappeared:In the customer interaction I saw, we needed to ask them to restart the sql-server to turn up the loglevel, but the sql-server could need to be restarted for many reasons of course. It might even be weeks later when the user needs to restart the server and it would be even more mysterious why that
root
account suddenly stopped existing.Dolt should match MySQL's behavior with the default admin user to make this less confusing/surprising for customers. MySQL has a default
root
admin user that users can delete or change as necessary, but MySQL never removes that user because customers created other users. Dolt should create the defaultroot
admin user account, and not delete it unless a customer explicitly deletes it.The text was updated successfully, but these errors were encountered: