Upgrade MySQL version to 8.0

This commit is contained in:
coolneng 2020-11-30 20:45:42 +01:00
parent fccb4b7d2b
commit 8a110ba5f9
Signed by: coolneng
GPG Key ID: 9893DA236405AF57
1 changed files with 2 additions and 2 deletions

4
env/mysql.nix vendored
View File

@ -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}