diff options
author | peter@mysql.com <> | 2002-11-30 20:58:53 +0300 |
---|---|---|
committer | peter@mysql.com <> | 2002-11-30 20:58:53 +0300 |
commit | a24258375a59e37d728dffae05235c59d283a6ab (patch) | |
tree | d6fd910fa1f2f46f32ad57ff34b8c30051905e04 /scripts | |
parent | 54ff0efe7cb79c2f3e7acc84f74905d750e51ba0 (diff) | |
download | mariadb-git-a24258375a59e37d728dffae05235c59d283a6ab.tar.gz |
SCRUM: Montymise code
fix mysql_change_user() for old clients
Diffstat (limited to 'scripts')
-rw-r--r-- | scripts/mysql_fix_privilege_tables.sh | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/scripts/mysql_fix_privilege_tables.sh b/scripts/mysql_fix_privilege_tables.sh index a65aca3c1fc..3ed295170ad 100644 --- a/scripts/mysql_fix_privilege_tables.sh +++ b/scripts/mysql_fix_privilege_tables.sh @@ -170,12 +170,20 @@ fi @bindir@/mysql -f --user=root --password="$root_password" --host="$host" mysql <<END_OF_DATA alter table user -change password password char(45) not null, add max_questions int(11) NOT NULL AFTER x509_subject, add max_updates int(11) unsigned NOT NULL AFTER max_questions, add max_connections int(11) unsigned NOT NULL AFTER max_updates; END_OF_DATA +# Increase password length to handle new passwords + +@bindir@/mysql -f --user=root --password="$root_password" --host="$host" mysql <<END_OF_DATA +alter table user +change password password char(45) not null; +END_OF_DATA + + + # # Add Create_tmp_table_priv and Lock_tables_priv to db and host # |