Let's try different approach. Create a file config/config.ini.php:
replace with your info, then you can login with root and password test
; <?php exit; ?> DO NOT REMOVE THIS LINE ; file automatically generated or modified by Piwik; you can manually override the default values in global.ini.php by redefining them in this file. [database] host = "127.0.0.1" username = "root" password= "" dbname = "XXX" tables_prefix = "piwik_" adapter = "PDO\MYSQL" charset = "utf8" [superuser] login = "root" password = "098f6bcd4621d373cade4e832627b4f6" email = "test@test.com" salt = "3c8f9ca0a238644809fe11b64871e8a3"
replace with your info, then you can login with root and password test