Rt 5.0.1 doesn't connect to mariadb

I have the rt_user and password in the etc/RT_SiteConfig.pm. When I start rt-server.fcgi it returnes

Connect Failed Access denied for user ‘rt_user’@‘localhost’ (using password: YES)
at /var/rt5/sbin/…/lib/RT.pm line 222.

I can connect just fine with

mysql -h localhost -u rt_user -p rt5

And the password “cut and paste” from etc/RT_SiteConfig.pm

I have tried setting “export RT_DB_PASSWORD=mypasswd” before starting rt-server.fcgi, but that doesn’t make any difference either.

Where do I go to track this down?

If you temporarily replace rt_user in your local RT_SiteConfig.pm with something else that can’t log in (for example george) do you still get exactly the same error message, or one with george in the error? If the error message is exactly the same (ie it still mentions rt_user) your config file isn’t being read in. That might be because it’s in the wrong place, has the wrong permissions or is being overridden by another config file.