S
S
Sergey Burduzha2020-06-10 20:19:03
Docker
Sergey Burduzha, 2020-06-10 20:19:03

Laradock SQLSTATE[HY000] [2002] No such file or directory?

I work in ubuntu.
I installed laradock and then laravel.
Started taking the course.
In the workspace, php artisan commands are executed and I can create controllers.

Now let's move on to the lesson about migrations.
Here are the settings from .env

DB_CONNECTION=mysql
DB_HOST=localhost
DB_PORT=3306
DB_DATABASE=tlaravel
DB_USERNAME=root
DB_PASSWORD=root

I log into phpmyadmin at localhost:8084

Login data:
mysql server
login root
pass root

The .env file in the laradock folder contains mysql latest version.

It's just that I can't figure out why the migrations don't work.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
S
Sergey Burduzha, 2020-06-10
@serii81

Changed in the .env file in laravel DB_HOST=mysql

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question