Replies: 4 comments
-
Maybe this helps? |
Beta Was this translation helpful? Give feedback.
-
If you say “maybe” it means you are not sure. I am not using MAMP and I am
not connecting using socket. And as I said clearing cache not helped.
It’s sad Laravel is shipped with something that not working out of the box.
This literally making me searching for alternatives, can you suggest one
beside Symfony? Language does not matter
W dniu niedz., 28.01.2024 o 07:23 Mateus Junges ***@***.***>
napisał(a):
… Maybe this
<https://stackoverflow.com/questions/27365473/mamp-with-laravel-unix-socket>
helps?
—
Reply to this email directly, view it on GitHub
<#49874 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAEQPFUO3IP7IZ3X3JIUUGTYQXVEPAVCNFSM6AAAAABCNWT3ZKVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTSMJTGQ3TAMRWHE>
.
You are receiving this because you authored the thread.Message ID:
***@***.***>
|
Beta Was this translation helpful? Give feedback.
-
Does a raw PDO call succeed, or throw an exception? eg: <?php
$pdo = new PDO(
'mysql:host=localhost;dbname=<YOUR DB NAME>',
'<YOUR MYSQL USERNAME>',
'<YOUR MYSQL PASSWORD>'
);
var_dump($pdo); |
Beta Was this translation helpful? Give feedback.
-
The error message Ensure that the Once you've corrected the |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Laravel Version
latest
PHP Version
8.2.14
Database Driver & Version
mysql Ver 8.0.35 for macos13.5 on arm64 (Source distribution)
Description
Tryint to run
php artisan migrate
on fresh install I gotNo solution on internet worked. This happens for DB_HOST set to 'localhost' or '127.0.0.1' . Driver is mysql.
Database and user exists and I am able to connect to database using terminal. No tables created on my own.
I tried to composer dump-autoload and php artisan optimize:clear to no results.
This is similar issue to #19522 that is already closed but still not solved after all these years.
Steps To Reproduce
1.Fresh install laravel
2. modify .env to reflect user and password and database
3. create database and user and make sure you can connect using terminal.
4. in project directory run
php artisan serve
5. see the error
Beta Was this translation helpful? Give feedback.
All reactions