Page MenuHomeDevCentral

Upgrade PHP version in Auth Grove Docker image
Closed, ResolvedPublic

Description

Container currently runs on PHP 5.6.35.

This version isn't compatible with MySQL 8:

Next exception 'PDOException' with message 'SQLSTATE[HY000] [2054] Server sent charset unknown to the client. Please, report to the developers' in /var/wwwroot/default/vendor/laravel/framework/src/Illuminate/Database/Connectors/Connector.php:55

Event Timeline

dereckson triaged this task as High priority.Sep 22 2018, 10:30
dereckson created this task.
$ php artisan tinker
Psy Shell v0.7.2 (PHP 7.2.10 — cli) by Justin Hileman
>>> $pdo = DB::connection()->getPdo();
=> PDO {#670
     inTransaction: false,
     attributes: {
       CASE: NATURAL,
       ERRMODE: EXCEPTION,
       AUTOCOMMIT: 1,
       PERSISTENT: false,
       DRIVER_NAME: "mysql",
       SERVER_INFO: "Uptime: 335792  Threads: 4  Questions: 9080172  Slow queries: 0  Opens: 8594  Flush tables: 2  Open tables: 2692  Queries per second avg: 27.041",
       ORACLE_NULLS: NATURAL,
       CLIENT_VERSION: "mysqlnd 5.0.12-dev - 20150407 - $Id: 38fea24f2847fa7519001be390c98ae0acafe387 $",
       SERVER_VERSION: "8.0.12",
       STATEMENT_CLASS: [
         "PDOStatement",
       ],
       EMULATE_PREPARES: 0,
       CONNECTION_STATUS: "mysql via TCP/IP",
       DEFAULT_FETCH_MODE: BOTH,
     },
   }