Skip to content

Conversation

@fulghum
Copy link
Contributor

@fulghum fulghum commented Jan 13, 2025

Changes to root superuser initialization mean that we now create the root superuser as root@localhost (instead of root@%), which means Docker customers need to specify new arguments to start up a Dolt sql-server that can accept connections as root from the host system. DOLT_ROOT_HOST and DOLT_ROOT_PASSWORD are analogues of MySQL's MYSQL_ROOT_HOST and MYSQL_ROOT_PASSWORD environment variables, and work in the same way – users can specify them to override the default host (localhost) and/or default password ("") for the root superuser account.

For example, the following Docker command shows how to start up a dolt/sql-server container where the root account can connect to the container from the host system using the password secret2:

docker run -e DOLT_ROOT_PASSWORD=secret2 -e DOLT_ROOT_HOST='%' -p 3307:3306 dolthub/dolt-sql-server:latest

@fulghum fulghum force-pushed the fulghum/root_superuser branch from a5fd882 to 989642b Compare January 14, 2025 22:43
Copy link
Member

@zachmu zachmu left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@fulghum fulghum merged commit d1f5daf into gitbook-dev Jan 15, 2025
@fulghum fulghum deleted the fulghum/root_superuser branch January 15, 2025 19:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants