@@ -, +, @@ --------- +CREATE USER 'bug23090_test1'@'localhost' IDENTIFIED BY 'badpassword'; +CREATE USER 'bug23090_test1'@'localhost' IDENTIFIED BY 'GoodP@ssw0rd'; +DROP USER 'bug23090_test1'@'localhost'; +QUIT --- debian/scripts/koha-create | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) --- a/debian/scripts/koha-create +++ a/debian/scripts/koha-create @@ -579,7 +579,10 @@ if [ "$op" = create ] || [ "$op" = request ] || [ "$op" = use ] then if [ "$mysqlpwd" = "" ] then - mysqlpwd="$(pwgen -s 16 1)" + # over-size, so when problematic chars are removed, + # still likely 16 characters left. + mysqlpwd="$(pwgen -s -y 32 1)" + mysqlpwd="$(echo $mysqlpwd | tr -d :\'\\\<\>\/ | cut -c1-16)" fi else mysqlpwd="$(getinstancemysqlpassword $name)" --