Server sent charset unknown to the client

4024
April 21, 2017, at 9:39 PM

I'm using a mysql 8.0 docker container with Laravel 5.4 and am unable to run migrations in Travis-CI. This works locally.

[Illuminate\Database\QueryException]                                         
  SQLSTATE[HY000] [2054] Server sent charset unknown to the client. Please, report to the developers (SQL: select * from information_schema.tables where  
   table_schema = xxxxxxxxx and table_name = migrations)                       

  [PDOException]                                                               
  SQLSTATE[HY000] [2054] Server sent charset unknown to the client. Please, report to the developers                                                      

  [PDOException]                                                               
  PDO::__construct(): Server sent charset (255) unknown to the client. Please, report to the developers  

Docker configuration:

version: '2'
services:
  fpm:
    build:
      context: .
      dockerfile: infrastructure/fpm/Dockerfile
    env_file: .env
    volumes:
      - ./:/var/www/html
  nginx:
    build:
      context: .
      dockerfile: infrastructure/nginx/Dockerfile
    volumes:
      - ./infrastructure/nginx:/etc/nginx/conf.d
      - ./public:/var/www/html/public
    ports:
      - "80:80"
  db:
    image: mysql:8.0
    ports:
      - "3306:3306"
    environment:
      MYSQL_ROOT_PASSWORD: xxxxxxxxx
      MYSQL_DATABASE: xxxxxxxxx
      MYSQL_USER: xxxxxxxxx
      MYSQL_PASSWORD: xxxxxxxxx

App configuration:

array:4 [
  "default" => "mysql"
  "connections" => array:3 [
    "mysql" => array:11 [
      "driver" => "mysql"
      "host" => "db"
      "port" => "3306"
      "database" => "xxxxxxxxx"
      "username" => "xxxxxxxxx"
      "password" => "xxxxxxxxx"
      "charset" => "utf8mb4"
      "collation" => "utf8mb4_unicode_ci"
      "prefix" => ""
      "strict" => true
      "engine" => null
    ]
  ]
]

I've verified mysql 8.0 supports this charset/collation. Docker logs also verify I'm running mysql v8.0.1

Am I missing something obvious?

READ ALSO
pyhon program for line search and replacement in a CSV file

pyhon program for line search and replacement in a CSV file

I am building a small tool in Python, the function of the tool is the following:

173
Laravel insert in one to many relationship

Laravel insert in one to many relationship

I have Post table and images table that have one to many relationship

295
How do I output multiple records for sum()

How do I output multiple records for sum()

I have the following table:

153