“open_basedir restriction” but project is within the allowed paths

Strange behavior, but solved just restarting the mysql service:

service mysql restart

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)