You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
# usage: process_init_file FILENAME MYSQLCOMMAND...# ie: process_init_file foo.sh mysql -uroot# (process a single initializer file, based on its extension. we define this# function here, so that initializer scripts (*.sh) can use the same logic,# potentially recursively, or override the logic used in subsequent calls)process_init_file() {
local f="$1";shiftlocal mysql=( "$@" )
case"$f"in*.sh) echo"$0: running $f";."$f" ;;
*.sql) echo"$0: running $f";"${mysql[@]}"<"$f";echo ;;
*.sql.gz) echo"$0: running $f"; gunzip -c "$f"|"${mysql[@]}";echo ;;
*) echo"$0: ignoring $f" ;;
esacecho
}
我想请教一下这些改动的目的是什么,以及radondb-mysql需要怎么初始化sql文件?
The text was updated successfully, but these errors were encountered:
General Question
我尝试了按照原生mysql镜像的方法,修改了chart中statefulset.yaml文件,把configmap挂载到了mysql容器的/docker-entrypoint-initdb.d目录,但是没有生效。于是我对比了一下mysql和xenondb/percona:5.7.33的docker-entrypoint.sh,发现相关逻辑有一些差异:
mysql:5.7:
https://github.com/docker-library/mysql/blob/master/5.7/docker-entrypoint.sh
xenondb/percona:5.7.33:
https://github.com/radondb/radondb-mysql-kubernetes/blob/main/charts/helm/dockerfiles/mysql/mysql-entry.sh
我想请教一下这些改动的目的是什么,以及radondb-mysql需要怎么初始化sql文件?
The text was updated successfully, but these errors were encountered: