You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
cd /tmp
devbox create mariadbtest --template mariadb
cd mariadbtest
devbox run bash -c 'echo $MYSQL_UNIX_PORT'# Prints /tmp/mariadbtest/.devbox/virtenv/mariadb/run/mysql.sock# Note: do not start mariadb. This means we expect the connect attempt to fail
devbox run mariadb
The output ends with:
ERROR 2002 (HY000): Can't connect to local server through socket '/run/mysqld/mysqld.sock' (2)
This shows that the socket path, MYSQL_UNIX_PORT, is not being read.
To show that this is buggy, run the exact same steps with mysql instead of mariadb:
cd /tmp
devbox create mysqltest --template mysql
cd mysqltest
devbox run bash -c 'echo $MYSQL_UNIX_PORT'# Prints /tmp/mysqltest/.devbox/virtenv/mysql80/run/mysql.sock# Note: do not start mysql. This means we expect the connect attempt to fail
devbox run mysql
This prints
ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/tmp/mysqltest/.devbox/virtenv/mysql80/run/mysql.sock' (2)
which is correct - the MYSQL_UNIX_PORT socket is being used.
Perhaps this is an upstream mariadb bug. A fix/workaround would be for Devbox's mariadb flake.nix to generate mysql and mariadb wrappers that set --socket=$MYSQL_UNIX_PORT.
Steps to reproduce
No response
Command
No response
devbox.json
Devbox version
0.14.0
Nix version
nix (Nix) 2.18.5
What system does this bug occur on?
Linux (x86-64)
Debug logs
No response
The text was updated successfully, but these errors were encountered:
What happened?
To replicate:
The output ends with:
This shows that the socket path,
MYSQL_UNIX_PORT
, is not being read.To show that this is buggy, run the exact same steps with mysql instead of mariadb:
This prints
which is correct - the MYSQL_UNIX_PORT socket is being used.
Perhaps this is an upstream mariadb bug. A fix/workaround would be for Devbox's mariadb flake.nix to generate
mysql
andmariadb
wrappers that set--socket=$MYSQL_UNIX_PORT
.Steps to reproduce
No response
Command
No response
devbox.json
Devbox version
0.14.0
Nix version
nix (Nix) 2.18.5
What system does this bug occur on?
Linux (x86-64)
Debug logs
No response
The text was updated successfully, but these errors were encountered: