Support the ongoing development of Laravel.io →
Installation Database
Last updated 7 months ago.
0

Anybody know how to fix without having to add in that unix socket?

0

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

Sign in to participate in this thread!

LoadForge

Your banner here too?

Moderators

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

Your logo here?

Laravel.io

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

© 2022 Laravel.io - All rights reserved.