dolt icon indicating copy to clipboard operation
dolt copied to clipboard

`--socket` option says it defaults to `/tmp/mysql.sock` but it does not

Open timsehn opened this issue 1 year ago • 1 comments

It's off by default so the documentation is misleading.

Or if it's a switch to turn it on this should work:

us-jails $ dolt sql-server --socket
error: no value for option `socket'
NAME
	dolt sql-server - Start a MySQL-compatible server.

SYNOPSIS
	dolt sql-server --config <file>
	dolt sql-server [-H <host>] [-P <port>] [-u <user>] [-p <password>] [-t <timeout>] [-l <loglevel>] [--data-dir <directory>] [--query-parallelism <num-go-routines>] [-r]
...
...
...

timsehn avatar Aug 02 '22 00:08 timsehn

This works:

us-jails $ dolt sql-server --socket=/tmp/mysql.sock
Starting server with Config HP="localhost:3306"|T="28800000"|R="false"|L="info"|S="/tmp/mysql.sock"

And other shell:

us-jails $ mysql
ERROR 1045 (28000): User not found 'timsehn'
us-jails $ mysql -uroot
Welcome to the MariaDB monitor.  Commands end with ; or \g.
Your MySQL connection id is 2
Server version: 5.7.9-Vitess 

Copyright (c) 2000, 2018, Oracle, MariaDB Corporation Ab and others.

Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.

MySQL [(none)]> 

timsehn avatar Aug 02 '22 00:08 timsehn