The update of MariaDB from version 10.1.36-1 to 10.2.18-1 is a major update, and must have be done manually.
This update introduced some differences on behavior of "default" fields of my tables, that you have caution to update.
Follow the procedure descripted at:
https://mariadb.com/kb/en/library/upgrading-from-mariadb-101-to-mariadb-102/(Adapted to CentOS)
1) Set innodb_fast_shutdown to 0 (this step is not necessary when upgrading to MariaDB 10.2.5 or later - omitting it can make the upgrade process far faster - see MDEV-12289).
2) Execute: yum update (enter 'yes', to update all packges as possible)
(Possibly the only one package not updated is 'MariaDB-server-10.2.18-1')
3) Take a backup (this is the perfect time to take a backup of your databases)
CAUTION: Believe me. Do backups right now by dumping them due that differences pointed. Be advised!
4) Uninstall MariaDB-server-10.1.36-1. Execute:
yum remove MariaDB-server-10.1.36-1
5) Install MariaDB-server-10.2.18-1
yum install MariaDB-server-10.2.18-1
(or to install all other packages: yum install MariaDB*)
6) Run: mysql_upgrade
mysql_upgrade does two things:
- Upgrades the permission tables in the mysql database with some new fields
- Does a very quick check of all tables and marks them as compatible with MariaDB 10.2
In most cases this should be a fast operation (depending of course on the number of tables)
7) Add new options to my.cnf to enable features
If you change my.cnf then you need to restart mariadb
Regards,
Netino