This is a read-only copy of the MariaDB Knowledgebase generated on 2024-11-15. For the latest, interactive version please visit https://mariadb.com/kb/.

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

Content reproduced on this site is the property of its respective owners, and this content is not reviewed in advance by MariaDB. The views, information and opinions expressed by this content do not necessarily represent those of MariaDB or any other party.