The mysql.user table query
I have 2 identical installations for testing purposes; MariaDb 10.2.13 on Debian 9. I have a VIEW which is based on the mysql.user table. It includes columns 'default_role' and 'max_statement_time' on installation A. On installation B these columns do not exist in the 'user' table. The result is that an sql dump from Database A cannot be restored to Database B. This is not critical as I can insert the missing columns.
My question is, what generates these 2 columns during setup and why should 2 identical setups differ? Both installations are from the MariaDb repository and the my.cnf files are identical.
Your help would be appreciated just to satisfy my curiosity.
Answer Answered by Ian Gilfillan in this comment.
Those two columns were added in MariaDB 10.1.1, so it is unlikely the setups are identical; either one is an older version, or was restored from an older version. See mysql.user table