Skip to content

Docker Image Fails To Work With Latest MySQL8 Docker Image #319

@jonmchan

Description

@jonmchan

Tried using wordpress with mysql:latest docker image. I get the following error trying to connect to the DB:

Warning: mysqli_real_connect(): Unexpected server respose while doing caching_sha2 auth: 109 in /var/www/html/wp-includes/wp-db.php on line 1531

Warning: mysqli_real_connect(): MySQL server has gone away in /var/www/html/wp-includes/wp-db.php on line 1531

Warning: mysqli_real_connect(): (HY000/2006): MySQL server has gone away in /var/www/html/wp-includes/wp-db.php on line 1531

It would appear the mysql plugin is too old to support authenticating with the latest version of mysql? I had to bump down the auth to the old 5.x methodology to get this to work.

Excerpt from phpinfo();

mysqlnd

mysqlnd => enabled
Version => mysqlnd 5.0.12-dev - 20150407 - $Id: 38fea24f2847fa7519001be390c98ae0acafe387 $

It seems pretty old to me?

Metadata

Metadata

Assignees

No one assigned

    Labels

    RequestRequest for image modification or featurequestionUsability question, not directly related to an error with the image

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions