Uploaded image for project: 'Percona Server for MySQL'
  1. Percona Server for MySQL
  2. PS-6836

mysql_config is missing from docker image

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Done
    • Priority: Medium
    • Resolution: Fixed
    • Affects Version/s: 5.7.29-32
    • Fix Version/s: 5.7.29-32
    • Component/s: Packaging
    • Labels:
      None

      Description

      Previously we had this in docker image, but due to PS-5760 change and package alignment with upstream, now this is not part of docker image.
      Not sure if it's an issue or not so reporting for discussion.

      PS 5.7.29 docker image:

      $ docker run --name ps57 -e MYSQL_ROOT_PASSWORD=pwd1234# -d percona/percona-server:5.7.29
      
      $ docker exec --user root -ti ps57 bash
      [root@dca7261b088e /]# mysql_config
      bash: mysql_config: command not found
      

      This is in image from mysql/mysql-server dockerhub repo:

      $ docker run --name mysql57 -e MYSQL_ROOT_PASSWORD=pwd1234# -d mysql/mysql-server:5.7.29
      
      $ docker exec --user root -ti mysql57 bash
      bash-4.2# mysql_config
      Usage: /usr/bin/mysql_config [OPTIONS]
      Compiler: GNU 4.8.5
      Options:
              --cflags         [-I/usr/include/mysql -m64 ]
              --cxxflags       [-I/usr/include/mysql -m64 ]
              --include        [-I/usr/include/mysql]
              --libs           [-L/usr/lib64/mysql -lmysqlclient -lpthread -lm -lrt -lssl -lcrypto -ldl]
              --libs_r         [-L/usr/lib64/mysql -lmysqlclient -lpthread -lm -lrt -lssl -lcrypto -ldl]
              --plugindir      [/usr/lib64/mysql/plugin]
              --socket         [/var/lib/mysql/mysql.sock]
              --port           [0]
              --version        [5.7.29]
              --libmysqld-libs [-L/usr/lib64/mysql -l ]
              --variable=VAR   VAR is one of:
                      pkgincludedir [/usr/include/mysql]
                      pkglibdir     [/usr/lib64/mysql]
                      plugindir     [/usr/lib64/mysql/plugin]
      

      PS 5.7.28:

      $ docker run --name ps57 -e MYSQL_ROOT_PASSWORD=pwd1234# -d percona/percona-server:5.7.28
      
      $ docker exec --user root -ti ps57 bash
      [root@dad9a285ed05 /]# mysql_config
      Usage: /usr/bin/mysql_config-64 [OPTIONS]
      Compiler: GNU 4.8.5
      Options:
              --cflags         [-I/usr/include/mysql -m64 ]
              --cxxflags       [-I/usr/include/mysql -m64 ]
              --include        [-I/usr/include/mysql]
              --libs           [-L/usr/lib64/mysql -lmysqlclient -lpthread -lz -lm -lrt -lssl -lcrypto -ldl]
              --libs_r         [-L/usr/lib64/mysql -lmysqlclient -lpthread -lz -lm -lrt -lssl -lcrypto -ldl]
              --plugindir      [/usr/lib64/mysql/plugin]
              --socket         [/var/lib/mysql/mysql.sock]
              --port           [0]
              --version        [5.7.28-31]
              --libmysqld-libs [-L/usr/lib64/mysql -l ]
              --variable=VAR   VAR is one of:
                      pkgincludedir [/usr/include/mysql]
                      pkglibdir     [/usr/lib64/mysql]
                      plugindir     [/usr/lib64/mysql/plugin]
      

        Smart Checklist

          Attachments

            Activity

              People

              Assignee:
              evgeniy.patlan Evgeniy Patlan
              Reporter:
              tomislav.plavcic@percona.com Tomislav Plavcic
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:

                  Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - Not Specified
                  Not Specified
                  Logged:
                  Time Spent - 50 minutes
                  50m