Description
When clearing cache using cache:clear cli command while eZ Publish has not yet been installed, a database error occurs:
[RuntimeException] Database error [PDOException] SQLSTATE[HY000] [1045] Access denied for user 'root'@'localhost' (using password: NO)
It usually happens if you install eZ completely via Composer (e.g. via create-project command).