-
Notifications
You must be signed in to change notification settings - Fork 11.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Laravel 11 Can't create nor connect to MySQL on Install #50536
Comments
same issue |
facing the same issue using PHP 8.2.12 and Laravel 11.0.2 , select breeze using react Edit found solution in its about the changing of DB_COLLATION |
Can you try with the following configuration: DB_COLLATION=(null) |
Please fill out your database driver and engine version and don't leave that field blank. |
This fixed it for me. Thank you. |
Same issue, with a slightly different error log: |
Mysql - Ver 14.14 Distrib 5.7.39, for osx10.12 (x86_64) |
This is now fixed with v11.0.6. Thanks everyone. |
DB_COLLATION=utf8mb4_unicode_ci |
That's not the installer? Try a support channel for your issue:
|
Laravel Version
11.0.2
PHP Version
8.3.3
Database Driver & Version
No response
Description
Trying to install the new Laravel 11 for the first time and can not get it to connect to mysql. Have tried to create the DB manually and it fails and running php artisan migrate, where it asks to create the DB Laravel_11 as it correctly says that it doen't exist and gives:
SQLSTATE[HY000] [1049] Unknown database 'laravel_11' (Connection: mysql, SQL: select table_name as
name
, (data_length + index_length) assize
, table_comment ascomment
, engine asengine
, table_collation ascollation
from information_schema.tables where table_schema = 'laravel_11' and table_type in ('BASE TABLE', 'SYSTEM VERSIONED') order by table_name)I have set the ENV variables which work fine for Laravel 10 and before. I have tried to create the DB manually and still doesn't work.
Steps To Reproduce
Laravel install Laravel_11
Install Jetstream and Livewire
Add Email verification and Dark
No to run migrations
Pick mysql as DB
The text was updated successfully, but these errors were encountered: