gitpod/scripts/mysql.sh
2022-03-10 15:46:17 +05:30

3 lines
228 B
Bash
Executable File

#!/bin/bash
kubectl port-forward statefulset/mysql 3306:3306 &
mysql -h 127.0.0.1 -P 3306 -u gitpod -D gitpod --select-limit=200 --safe-updates --password="$(kubectl get secrets mysql -o jsonpath="{.data.password}" | base64 -d)"