Русское сообщество разработки на PHP-фреймворке Laravel.
Ты не вошёл. Вход тут.
Страницы 1
При выполнении команды php artisan migrate выходит следующая ошибка:
Illuminate\Database\QueryException
at vendor\laravel\framework\src\Illuminate\Database\Connection.php:829
825 $this->getName(), $query, $this->prepareBindings($bi
ndings), $e
826 );
827 }
828
829 throw new QueryException(
830 $this->getName(), $query, $this->prepareBindings($bindin
gs), $e
831 );
832 }
833 }
1 vendor\laravel\framework\src\Illuminate\Database\Connectors\Connector.php:
65
2 vendor\laravel\framework\src\Illuminate\Database\Connectors\Connector.php:
65
PDO::__construct("mysql:host=127.0.0.1;port=3306;dbname=larlesson", "root"
, "", [])
Расширение pdo_mysql подключено.
Данные в .env корректны.
Что это может быть? Версия MySQL - 5.6.
Не в сети
The QueryException during php artisan migrate with MySQL 5.6, especially with PDO::__construct(..., "root", "", []), strongly suggests a password issue for the root user in your .env file. Even if you think it's correct, double-check that DB_PASSWORD accurately reflects the root user's password (or is completely empty if there's no password). Also, My Centura Health ensure the larlesson database actually exists, as Laravel doesn't create it automatically. After any .env changes, run php artisan config:clear.
Не в сети
Спасибо, часть проблемы решена - в файле .env оказывается DB_HOST=127.0.0.1 было. Указал DB_HOST=MySQL-5.6, все заработало. сейчас другие проблемы решаю.
Не в сети
Страницы 1