2014-11-19 00:19:17 +01:00
|
|
|
#
|
|
|
|
# MDEV-6984 Can't migrate from MySQL 5.6.21 to MariaDB 10
|
|
|
|
#
|
|
|
|
--source include/not_embedded.inc
|
|
|
|
|
|
|
|
#
|
|
|
|
# When 'root' account is password protected and MYSQL_UPGRADE doesn't
|
|
|
|
# know the password (meaning, MYSQL_UPGRADE is run automatically
|
|
|
|
# on upgrade), MYSQLD has to be started with --skip-grant-tables.
|
|
|
|
#
|
|
|
|
# In this setup MYSQL_UPGRADE cannot continue after issuing FLUSH PRIVILEGES
|
|
|
|
#
|
|
|
|
|
2018-11-24 14:13:41 +01:00
|
|
|
update mysql.global_priv set priv=json_set(priv, '$.plugin', 'mysql_native_password', '$.authentication_string', password('foo'));
|
2014-11-19 00:19:17 +01:00
|
|
|
|
|
|
|
--exec $MYSQL_UPGRADE
|
|
|
|
|
|
|
|
connect(con1,localhost,root,foo,,,);
|
|
|
|
|
2019-02-05 16:07:07 +01:00
|
|
|
update mysql.global_priv set priv=json_compact(json_remove(priv, '$.plugin', '$.authentication_string'));
|
2014-11-19 00:19:17 +01:00
|
|
|
flush privileges;
|
2015-10-15 12:11:17 +03:00
|
|
|
# Load event table
|
|
|
|
set global event_scheduler=OFF;
|