Use Dolt with a Mac SQL client
Last updated: December 1, 2026. Tested with SQLPro Studio on macOS 26 against Dolt 2.7.8.
Dolt is a SQL database with Git-style version control, and dolt sql-server speaks the MySQL protocol. To use it from SQLPro Studio, choose New › MySQL / MariaDB, enter the server's host and port (3306 by default), the user root with an empty password, and your database name, then click Save & Connect. Commits, branches and diffs work from the SQL editor through Dolt's stored procedures and system tables. To browse a branch in the sidebar, use database/branch as the database name.
SQLPro Studio sees Dolt as a MySQL 8.0 server, so the sidebar shows your databases, tables and views as it would for MySQL. Nothing extra needs to be installed in the app. SQLPro for MySQL, our MySQL-only Mac app, uses the same connection code, so the steps are the same there.
What you need
- A running Dolt SQL server. Either run
dolt sql-serverin a directory that holds a Dolt database, or start the Docker image:docker run -d --name dolt -p 3306:3306 -e DOLT_ROOT_HOST=% dolthub/dolt-sql-server:latestDOLT_ROOT_HOST=%letsrootconnect from outside the container, which your Mac is. - SQLPro Studio for Mac. Download the free 7-day trial.
By default the server listens on port 3306 and accepts root with no password. Set a password before you expose it to a network. When you run dolt sql-server in a database directory, the database is named after the directory, with dashes turned into underscores (my-data becomes my_data).
Step 1: Add the connection in SQLPro Studio
Click Connect…, then the + menu, and choose MySQL / MariaDB. Fill in:
- Name: anything you like, such as Dolt.
- Server host:
localhostfor a server on your Mac, otherwise the server's host name. - Port: 3306, or the port you passed to
dolt sql-server --port. - Login:
root, and leave Password empty unless you set one. - Database: your database name, for example
shop. You can leave it empty to see every database on the server.
Click Save & Connect. The server shows up in the sidebar as MySQL 8.0 with your database under it.
Step 2: Commit, branch and diff from the SQL editor
Dolt's version control is plain SQL, so it runs in a New Query tab like any other statement. Press Shift-Command-E to run everything in the tab; you get a result for each statement. This example switches to a branch, changes a price, commits it, then compares the branch with main:
CALL DOLT_CHECKOUT('price-update');
UPDATE products SET price = 12.99 WHERE id = 1;
CALL DOLT_COMMIT('-am', 'Raise the Widget price');
SELECT diff_type, to_id AS id, to_name AS name, from_price, to_price
FROM dolt_diff('main', 'price-update', 'products');
SELECT commit_hash, message, date FROM dolt_log LIMIT 3;
The ones you will use most:
| Statement | What it does |
|---|---|
SELECT * FROM dolt_log | The commit history of the current branch. |
SELECT * FROM dolt_branches | Every branch, with its latest commit. |
SELECT * FROM dolt_status | Tables with uncommitted changes. |
SELECT * FROM dolt_diff('main', 'feature', 'table') | Row-by-row differences for one table between two branches or commits. |
SELECT * FROM dolt_history_<table> | Every version of each row in a table, commit by commit. |
CALL DOLT_COMMIT('-Am', 'message') | Stage all changes and commit them. |
CALL DOLT_BRANCH('feature') | Create a branch. |
CALL DOLT_CHECKOUT('feature') | Switch this session to another branch. |
CALL DOLT_MERGE('feature') | Merge a branch into the current one. |
The dolt_ system tables don't appear in the sidebar's table list. Query them by name.
Step 3: Open a branch in its own connection
DOLT_CHECKOUT only switches the session that runs it. The sidebar and your other query tabs stay on the branch the connection opened with, which is usually main. To browse a branch in the sidebar, add a second connection and put database/branch in the Database field, for example shop/price-update. Its tables, and every query you run on that connection, then read that branch. We tested this with a separate connection for the price-update branch next to the one for main.
Things to know
- A SQL commit is not a Dolt commit. Your
INSERTs andUPDATEs are saved in Dolt's working set as soon as they run, but they aren't part of the history until you callDOLT_COMMIT. - Dolt reports itself as MySQL 8.0. Most MySQL tools and SQL work, but Dolt's documentation notes some differences in
information_schema, so a few details shown for MySQL servers may be missing or different. - Hosted Dolt and DoltgreSQL: Hosted Dolt is reached with a MySQL client in the same way. DoltgreSQL is the PostgreSQL-compatible version of Dolt and would use a PostgreSQL connection instead. We have not tested either one.
Troubleshooting
Access denied for user 'root'
When Dolt runs in Docker, root can only sign in from inside the container unless you start it with -e DOLT_ROOT_HOST=% (or create another user). If you set DOLT_ROOT_PASSWORD, enter that password.
database not found (Error 1049)
The database name doesn't exist on the server. Leave Database empty to see which ones do, or run SHOW DATABASES. Remember that dashes in a directory name become underscores. Databases you create with the dolt command-line tool outside the server's data directory are not served by it.
My changes disappeared after switching branches
Uncommitted changes belong to the branch where you made them. Switch back with CALL DOLT_CHECKOUT('branch'), or check dolt_status, then commit before you move on.
Questions people ask
Does SQLPro Studio work with Dolt?
Yes. Dolt's SQL server speaks the MySQL protocol, so you add it as a MySQL / MariaDB connection. We tested it on December 1, 2026 with Dolt 2.7.8: connecting, browsing tables, and running Dolt's commit, branch, diff and log statements from the SQL editor.
What are the default Dolt connection settings?
Port 3306, user root and an empty password. The database is named after the directory you started dolt sql-server in, with dashes replaced by underscores.
How do I switch branches in a GUI client?
Run CALL DOLT_CHECKOUT('branch') in a query tab to switch that session. To browse a branch in the sidebar, make a connection with database/branch (for example shop/price-update) as the database name.
Can I see Dolt commits and diffs in SQLPro Studio?
Yes, as query results. SELECT from dolt_log for the history and from dolt_diff('from', 'to', 'table') for row-level differences. They show in the results grid like any other query.
Can I use SQLPro for MySQL instead of SQLPro Studio?
Yes. SQLPro for MySQL is our MySQL-only Mac app and uses the same connection code, so the steps on this page are the same.
Is SQLPro Studio free?
There is a free 7-day trial on macOS. After that it is $15.99 a month or $99.99 a year (covering macOS, iPhone, iPad, Android and Windows), or $219.99 for a lifetime license on one platform. Students can get it free for a year.
More setup guides: databases and cloud services SQLPro Studio works with, including Neon and CockroachDB. Comparing clients? See the best MySQL clients for Mac and the best database software for Mac.