Anybody know how to fix without having to add in that unix socket?
Well, i use xampp and it's similar i guess. in my case the file my.cnf was the correct socket
[mysqld] socket = /opt/lampp/var/mysql/mysql.sock
and here is my database.php database.php
'mysql' => [ 'driver' => 'mysql', 'unix_socket' => '/opt/lampp/var/mysql/mysql.sock', 'host' => env('DB_HOST', 'localhost'), 'database' => env('DB_DATABASE', 'forge'), 'username' => env('DB_USERNAME', 'forge'), 'password' => env('DB_PASSWORD', ''), 'charset' => 'utf8', 'collation' => 'utf8_unicode_ci', 'prefix' => '', 'strict' => false, ],
Sign in to participate in this thread!
We'd like to thank these amazing companies for supporting us