Skip to content
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

Unknown character set #50577

Closed
jeffdv opened this issue Mar 15, 2024 · 2 comments
Closed

Unknown character set #50577

jeffdv opened this issue Mar 15, 2024 · 2 comments

Comments

@jeffdv
Copy link

jeffdv commented Mar 15, 2024

Laravel Version

11.0.6

PHP Version

8.3.4

Database Driver & Version

MariaDB-1:11.3.2

Description

I created a fresh new laravel project and I'm trying to run php artisan migrate.
This gives me the following error:

Syntax error or access violation: 1115 Unknown character set: 'utf8mb4¾' (Connection: mariadb, SQL: select table_name as name, (data_length + index_length) as size, table_comment as comment, engine as engine, table_collation as collation from information_schema.tables where table_schema = 'xxx' and table_type in ('BASE TABLE', 'SYSTEM VERSIONED') order by table_name)

This is in my ENV:
DB_CONNECTION=mariadb
DB_HOST=localhost
DB_PORT=3306
DB_DATABASE=database
DB_USERNAME=root
DB_PASSWORD=root

Steps To Reproduce

Create a new project and run php artisan migrate

@driesvints
Copy link
Member

Please provide very detailed steps to reproduce this. Exact commands and choices made when running install commands. Thanks!

@jeffdv
Copy link
Author

jeffdv commented Mar 15, 2024

I'm just an idiot. Has nothing to do with Laravel.
I had sqlite disabled in my php, this threw an error while running

composer create-project laravel/laravel:^11.0 example-app

Enabled it and all the problems are gone

@jeffdv jeffdv closed this as completed Mar 15, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants