wdb_def="auth" printf"What is your World database name ?\t[${wdb_def}]: " read wdb wdb=${wdb:-${wdb_def}}
printf"What is your MySQL password ?\t [], " mysql_config_editor set --login-path=local --host=127.0.0.1 --port=3306 --user=root --password --skip-warn
printf"Updating data into the character database ${wdb}\n" for file in $(ls *.sql | tr' ''|' | tr'\n'' ') do file=$(echo${file} | tr'|'' ') printf"Applying update ${file}\n" mysql --login-path=local -q -s ${wdb} < ${file} done