How to store YMD, HM but not S Seconds in mariaDB/MySQL?
There is no special datatype for this :) Instead, you can use DATE_FORMAT 

Example:

SELECT DATE_FORMAT(now(), '%Y-%m-%d %H:%i');


So you can create a view to converting your datetime column to the specific date format. 

Create table with Datetime

create table test (date datetime);
insert into test values (now());
select * from test;
2017-12-28 10:30:24


Create view to convert date format

create view v_test as (select DATE_FORMAT(date, '%Y-%m-%d %H:%i'));

select * from v_test;
2017-12-28 10:30