mirror of
https://github.com/MariaDB/server.git
synced 2025-08-30 11:22:14 +03:00
Update for autoconf 2.52 BitKeeper/deleted/.del-compile-pentium-symbols~b1b0f0b465eb15b8: Delete: BUILD/compile-pentium-symbols BUILD/Makefile.am: Remove not used scripts BUILD/SETUP.sh: Update needed for SuSE 7.3 BUILD/compile-alpha: Update needed for SuSE 7.3 BUILD/compile-pentium-debug-no-bdb: Update needed for SuSE 7.3 BUILD/compile-pentium-gcov: Update needed for SuSE 7.3 BUILD/compile-pentium-gprof: Update needed for SuSE 7.3 BUILD/compile-pentium-mysqlfs-debug: Update needed for SuSE 7.3 BUILD/compile-pentium: Update needed for SuSE 7.3 Docs/manual.texi: changelog Docs/mysqld_error.txt: New error messages. acconfig.h: Update to autoconf 2.52 acinclude.m4: Update to autoconf 2.52 bdb/dist/configure.in: Update to autoconf 2.52 configure.in: Update to autoconf 2.52 myisam/mi_check.c: Fix for myisamchk bug when reparing table with many keys. myisam/mi_key.c: Fix problem with NAN in key's scripts/Makefile.am: Fix for autoconf 2.52 scripts/mysql_new_fix_privilege_tables.sh: cleanup
26 lines
1.0 KiB
Bash
26 lines
1.0 KiB
Bash
#!/bin/sh
|
|
|
|
echo "This scripts updates the mysql.user, mysql.db, mysql.host and the"
|
|
echo "mysql.func table to MySQL 3.22.14 and above."
|
|
echo ""
|
|
echo "This is needed if you want to use the new GRANT functions,"
|
|
echo "CREATE AGGREAGATE FUNCTION or want to use the more secure passwords in 3.23"
|
|
echo ""
|
|
echo "If you get Access denied errors, you should run this script again"
|
|
echo "and give the MySQL root user password as a argument!"
|
|
|
|
root_password="$1"
|
|
host="localhost"
|
|
|
|
# Fix old password format, add File_priv and func table
|
|
echo ""
|
|
echo "If your tables are already up to date or partially up to date you will"
|
|
echo "get some warnings about 'Duplicated column name'. You can safely ignore these!"
|
|
|
|
# Add fields that can be used to limit number of questions and connections
|
|
# for some users.
|
|
|
|
@bindir@/mysql -f --user=root --password="$root_password" --host="$host" mysql <<END_OF_DATA
|
|
alter table user add max_questions int(11) NOT NULL, add max_updates int(11) unsigned NOT NULL, add max_connections int(11) unsigned NOT NULL;
|
|
END_OF_DATA
|