diff --git a/env/mysql.nix b/env/mysql.nix index bcdc24f..3bc5512 100644 --- a/env/mysql.nix +++ b/env/mysql.nix @@ -8,14 +8,14 @@ let socket = "${data_dir}/mysql.sock"; in mkShell { - buildInputs = [ mysql57 ]; + buildInputs = [ mysql80 ]; shellHook = '' trap "kill 0" EXIT [ -d ${data_dir} ] || mkdir ${data_dir} mysqld --datadir="${data_dir}" --socket="${socket}" --initialize-insecure - mysqld --datadir="${data_dir}" --socket="${socket}" --skip-networking & + mysqld --datadir="${data_dir}" --socket="${socket}" --skip-networking --skip-mysqlx & sleep 1 mysql --socket="${socket}" -u root < ${sql_file}