[lxc-users] MySQL Unable to install on 14.04 Container

David Favor david at davidfavor.com
Tue Jul 11 14:07:52 UTC 2017


Gabriel Marais wrote:
> 
> 
> Hi Guys
> 
> Recently I have been trying to install MySQL on a Ubuntu 14.04 
> container. The files are downloaded fine, and installation continues to 
> the point where one needs to specify the root password for MySQL - At 
> this point, after specifying the password, the installation hangs as below:-
> 
> Setting up libaio1:amd64 (0.3.109-4) ...
> Setting up mysql-server-core-5.5 (5.5.55-0ubuntu0.14.04.1) ...
> Setting up mysql-server-5.5 (5.5.55-0ubuntu0.14.04.1) ...
> 170705 8:40:45 [Warning] Using unique option prefix key_buffer instead 
> of key_buffer_size is deprecated and will be removed in a future 
> release. Please use the full name instead.
> 170705 8:40:45 [Note] Ignoring --secure-file-priv value as server is 
> running with --bootstrap.
> 170705 8:40:45 [Note] /usr/sbin/mysqld (mysqld 5.5.55-0ubuntu0.14.04.1) 
> starting as process 3846 ...
> 
> Nothing happens after this point.
> 
> Any ideas on what to look for?

I'm wondering if you're installing Trusty so you PHP-5.5 access.

If you can tolerate PHP-5.6 (as PHP-5.5 is highly hackable), you might
try this.

1) Create an Ubuntu Zesty based container

2) Inside your container...

LC_ALL=C.UTF-8 add-apt-repository ppa:ondrej/php </dev/null
LC_ALL=C.UTF-8 add-apt-repository ppa:ondrej/apache2 </dev/null

add-apt-repository ppa:pdoes/dovecot </dev/null

apt-key adv --recv-keys --keyserver hkp://keyserver.ubuntu.com:80 0xF1656F24C74CD1D8
echo "deb [arch=amd64,i386] http://links.davidfavor.com/wf/click?upn=4BgcJu7FL8IQ-2FijfDDugFRx5ACiF6s6WYIwCCtBrwnhH8gbfquuUjggr9BUcUTuXDN2ceuQjaLxU3o5O4YtPepUuq-2FjhkGe1ANCYW5JdWKE-3D_dR-2FDpsqbqS0pG-2FvtYnlwlYDAXhLtx9yTSf3jZyR4W4FJm5kgQqvrKRmmJ9iEttydavqt4SiXDUgfyrnm4wEgKN8egXBCjpxTGm88TtwkVvrYVSXjJqIcXi5n8AD-2B85Ku0FTqYon9-2BAkf7POzh05vHVJDaf18V8t9YubTqXWxAeaA8m0n4IybGn4IB4Zsm2mY3Hli40FF-2F9MY51vykP4xHZDjUN7M5mVaZiXuhGmaDvI7kvcZETH363AKi7lhe97u $(lsb_release -sc) main" > /etc/apt/sources.list.d/mariadb.list

apt-get update

apt-cache policy apache2 php7.1 mariadb-server dovecot-core openssl

apt-get install mariadb-server mariadb-client libmysqlclient-dev libapache2-mod-php5.6

a2enmod mpm_prefork ssl http2 expires headers include rewrite

service apache2 restart

3) At this point, you can install Apache-2.4.27 + HTTP2 + PHP which can switch between
    versions 5.6 + 7.0 + 7.1 which give you a solid starting point of latest MariaDB
    with whatever version of PHP you require.

Just a thought.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.linuxcontainers.org/pipermail/lxc-users/attachments/20170711/98b5463c/attachment.html>


More information about the lxc-users mailing list