Support the ongoing development of →
Installation Database
Last updated 2 years ago.

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

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,
Last updated 8 years ago.

Sign in to participate in this thread!


Your banner here too?


We'd like to thank these amazing companies for supporting us

Your logo here?

The Laravel portal for problem solving, knowledge sharing and community building.

© 2024 - All rights reserved.