Upgrade MySQL version to 8.0
This commit is contained in:
parent
fccb4b7d2b
commit
8a110ba5f9
|
@ -8,14 +8,14 @@ let
|
||||||
socket = "${data_dir}/mysql.sock";
|
socket = "${data_dir}/mysql.sock";
|
||||||
|
|
||||||
in mkShell {
|
in mkShell {
|
||||||
buildInputs = [ mysql57 ];
|
buildInputs = [ mysql80 ];
|
||||||
|
|
||||||
shellHook = ''
|
shellHook = ''
|
||||||
trap "kill 0" EXIT
|
trap "kill 0" EXIT
|
||||||
[ -d ${data_dir} ] || mkdir ${data_dir}
|
[ -d ${data_dir} ] || mkdir ${data_dir}
|
||||||
|
|
||||||
mysqld --datadir="${data_dir}" --socket="${socket}" --initialize-insecure
|
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
|
sleep 1
|
||||||
|
|
||||||
mysql --socket="${socket}" -u root < ${sql_file}
|
mysql --socket="${socket}" -u root < ${sql_file}
|
||||||
|
|
Loading…
Reference in New Issue