Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.php > #17705

Re: docker: apache, php and mysql

From alex <1j9448a02@lnx159sneakemail.com.invalid>
Newsgroups comp.lang.php
Subject Re: docker: apache, php and mysql
Date 2018-03-15 17:41 +0100
Organization Aioe.org NNTP Server
Message-ID <p8e7n6$ldd$1@gioia.aioe.org> (permalink)
References (1 earlier) <p8c3cl$nd3$1@jstuckle.eternal-september.org> <p8d9l0$ucg$1@gioia.aioe.org> <p8dp3b$4j8$2@news.albasani.net> <p8dt00$14v$1@gioia.aioe.org> <p8e1jn$ef2$1@news.albasani.net>

Show all headers | View raw


Il 15/03/2018 15:56, Martin Gregorie ha scritto:
> On Thu, 15 Mar 2018 14:38:09 +0100, alex wrote:
> 
>> Il 15/03/2018 13:31, Martin Gregorie ha scritto:
>>> On Thu, 15 Mar 2018 09:08:01 +0100, alex wrote:
>>>
>>>> Il 14/03/2018 22:15, Jerry Stuckle ha scritto:
>>>>>
>>>>> Is your database host actually named "mysql"?
>>>>
>>>> Maybe you're right, but how do I know the name?
>>>> How can I configure it?
>>>
>>> Try reading the mysql configuration file, looking at parameters passed
>>> to the ODBC module by another application, etc.
>>>
>>>
>>>
>>>
>> How (excuse the ignorance)?
> 
> Read manpage or manual to find the name of the config file.
> Find config file on the computer running mysql
> Read it.
> 
> OR
> 
> Find source for an application that talks to mysql
> Read its source.

$ sudo mysqld --verbose --help | grep -A 1 "Default options"
Default options are read from the following files in the given order:
/etc/my.cnf /etc/mysql/my.cnf ~/.my.cnf

OK, but into docker

$ docker-compose run app mysqld --verbose --help

Starting dockermysql_mysql_1 ...
Starting dockermysql_mysql_1 ... done
/usr/local/bin/docker-php-entrypoint: 9: exec: mysqld: not found


Back to comp.lang.php | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

docker: apache, php and mysql alex <1j9448a02@lnx159sneakemail.com.invalid> - 2018-03-13 20:31 +0100
  Re: docker: apache, php and mysql Jerry Stuckle <jstucklex@attglobal.net> - 2018-03-14 17:15 -0400
    Re: docker: apache, php and mysql alex <1j9448a02@lnx159sneakemail.com.invalid> - 2018-03-15 09:08 +0100
      Re: docker: apache, php and mysql Martin Gregorie <martin@mydomain.invalid> - 2018-03-15 12:31 +0000
        Re: docker: apache, php and mysql alex <1j9448a02@lnx159sneakemail.com.invalid> - 2018-03-15 14:38 +0100
          Re: docker: apache, php and mysql Martin Gregorie <martin@mydomain.invalid> - 2018-03-15 14:56 +0000
            Re: docker: apache, php and mysql alex <1j9448a02@lnx159sneakemail.com.invalid> - 2018-03-15 17:41 +0100
              Re: docker: apache, php and mysql MeV <michael.vilain@gmail.com> - 2018-03-15 11:03 -0700
                Re: docker: apache, php and mysql alex <1j9448a02@lnx159sneakemail.com.invalid> - 2018-03-15 19:14 +0100
      Re: docker: apache, php and mysql Jerry Stuckle <jstucklex@attglobal.net> - 2018-03-15 14:16 -0400
        Re: docker: apache, php and mysql alex <1j9448a02@lnx159sneakemail.com.invalid> - 2018-03-15 20:46 +0100
        Re: docker: apache, php and mysql Percival John Hackworth <pjh@nanoworks.com> - 2018-03-15 16:41 -0700
          Re: docker: apache, php and mysql Jerry Stuckle <jstucklex@attglobal.net> - 2018-03-15 20:33 -0400

csiph-web