Exception while creating PDO object:could not find driver

Hello, so I’ve been trying to start the migration to docker, currently selfhosted updating via Git.
However when I updated, and loaded the site I got the error:
Exception while creating PDO object:could not find driver

Started looking, saw the config changed, so I updated it and it’s currently like this:

putenv (‘TTRSS_DB_TYPE = mysql’);
putenv (‘TTRSS_DB_HOST = localhost’);
putenv ('TTRSS_DB_USER = ');
putenv (‘TTRSS_DB_NAME = ttrss’);
putenv ('TTRSS_DB_PASS = ');
putenv (‘TTRSS_DB_PORT = 3306’);
//putenv (‘TTRSS_MYSQL_CHARSET = UTF8’);
putenv(‘TTRSS_SINGLE_USER_MODE=true’);

But the error remains, am I missing some quotes or something? Or the config location isn’t in the root folder anymore?
Any idea is appreciated.

Try it without spaces around the equal sign.

https://git.tt-rss.org/fox/tt-rss/wiki/GlobalConfig
https://www.php.net/manual/en/function.putenv.php

Hi, it worked, thank you! That was a great suggestion, well caught.

Also didn’t know putenv was a php function, on the page there’s a comment saying white spaces matter:
https://www.php.net/manual/en/function.putenv.php#124159