I can connect to a Craft 3 site just fine using Laravel Valet, but when I attempt to get a Craft 2 site working with it, it gives me this in the log:
[exception.CDbException] SQLSTATE[HY000]  Access denied for user 'root'@'localhost' (using password: NO)
Visiting the site with the /index.php?p=admin portion appended to the url gives this:
Craft can’t connect to the database with the credentials in craft/config/db.php.
I 100% have the correct db credentials, as the Craft 3 site is using the same ones and is running just fine at sitename.test
'http://example.test' => array( 'server' => 'localhost', 'user' => 'root', 'password' => 'thecorrectpw', 'database' => 'dbname', )
Does anyone have any idea what could be going on? I would like to keep using Valet as it makes my life easier, but I am going to fling my laptop out the window into the city streets in about an hour or so if I cant get this working =)