create user 'testuser'@'%' identified via pam using 'mariadb';
create database testdb;
grant all privileges on testdb.* to 'testuser'@'%';
flush privileges;

use testdb;
create table testtable (
    id int primary key auto_increment,
    bla varchar(32)
);
insert into testtable (bla) values('bla1');
insert into testtable (bla) values('bla2');
insert into testtable (bla) values('bla3');
