The problem was an unknown character set in wp-config.php. Changed ‘utf-8’ to ‘utf8’ and now it’s working.
pdo_mysql is actually loaded. I had overlooked it in the phpinfo. Still the database connection is not working. Maybe a problem with php 7.1?
Seems like the PDO_MYSQL extension is missing. I’m checking in with my host provider to get this fixed.