Skip to content

mysql-first-time fails to run when custom cnf configuration has client protocol=TCP #83

@joshunger

Description

@joshunger

mysql-first-time fails to run when custom cnf configuration has client protocol=TCP

  1. Create custom MySQL configuration file with the following content -
[client]
protocol=tcp
  1. Start mysql docker using the instructions from https://github.com/docker-library/docs/tree/master/mysql#user-content-using-a-custom-mysql-configuration-file

EXPECTING: mysql-first-time script runs

ACTUAL: fails with the following error -

ERROR 2003 (HY000): Can't connect to MySQL server on 'localhost' (111)

See line 81 https://github.com/docker-library/mysql/blob/master/5.6/docker-entrypoint.sh. Shouldn't the protocol be forced to something other than TCP since mysqld was started with skip-networking?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions