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

Add troubleshooting instructions for mariadb on debian #122

Merged
merged 1 commit into from
Aug 18, 2024

Conversation

ThisIsMissEm
Copy link
Contributor

This is what I had to do and was stumped on this error:

php artisan migrate --force

   Illuminate\Database\QueryException 

  SQLSTATE[HY000] [2054] Server sent charset (0) unknown to the client. Please, report to the developers (Connection: mysql, 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 = 'pixelfed' and table_type in ('BASE TABLE', 'SYSTEM VERSIONED') order by table_name)

  at vendor/laravel/framework/src/Illuminate/Database/Connection.php:829
    825▕                     $this->getName(), $query, $this->prepareBindings($bindings), $e
    826▕                 );
    827▕             }
    828▕ 
  ➜ 829▕             throw new QueryException(
    830▕                 $this->getName(), $query, $this->prepareBindings($bindings), $e
    831▕             );
    832▕         }
    833▕     }

      +36 vendor frames 
  37  artisan:35
      Illuminate\Foundation\Console\Kernel::handle()

Turned out by default mariadb on debian 12 from the mariadb install guide uses a different character set.

@dansup dansup merged commit 4f55ec8 into pixelfed:main Aug 18, 2024
@dansup
Copy link
Member

dansup commented Aug 18, 2024

Thanks for the helpful fix, I'm sure others will run into this issue!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants