summaryrefslogtreecommitdiff
path: root/mysql-test/t/mysql_upgrade-6984.test
blob: 9bbfbeb3f872c243c4a6651ac68e9db93fb32946 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
#
# 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
#

update mysql.user set password=password("foo") where user='root';

--exec $MYSQL_UPGRADE

connect(con1,localhost,root,foo,,,);

update mysql.user set password='' where user='root';
flush privileges;
# Load event table
set global event_scheduler=OFF;