From 8a110ba5f91880996dcefaa8b547914a3a02c706 Mon Sep 17 00:00:00 2001 From: coolneng Date: Mon, 30 Nov 2020 20:45:42 +0100 Subject: [PATCH] Upgrade MySQL version to 8.0 --- env/mysql.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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}