X-Git-Url: http://gitweb.hugovil.com/?a=blobdiff_plain;f=stage3%2Fcis-mysql;h=799f74b957045fa45cefd22e166ef484ede6d466;hb=5b913b7b528bb69a0c90583b8776d6d26b9cb189;hp=2cc93cec3b10b9009e0172019441cc38940d6547;hpb=8c1ceecd26d41af612337eb87f51fa1d353d6c8a;p=hvlinux.git diff --git a/stage3/cis-mysql b/stage3/cis-mysql index 2cc93ce..799f74b 100755 --- a/stage3/cis-mysql +++ b/stage3/cis-mysql @@ -15,7 +15,7 @@ hv_groupadd mysql hv_useradd -c mysql -d /dev/null -g mysql -s /bin/false mysql cd ${LFS_TMP}/${1} -CPPFLAGS="-D_GNU_SOURCE" ./configure \ +./configure \ --prefix=/usr \ --sysconfdir=/etc \ --libexecdir=/usr/sbin \ @@ -23,18 +23,20 @@ CPPFLAGS="-D_GNU_SOURCE" ./configure \ --enable-thread-safe-client \ --enable-assembler \ --enable-local-infile \ - --with-named-thread-libs=-lpthread \ --with-unix-socket-path=/var/run/mysql/mysql.sock \ --without-debug \ - --without-bench \ - --without-readline -make testdir=/usr/lib/mysql/mysql-test -make testdir=/usr/lib/mysql/mysql-test install + --without-readline \ + --with-plugins=innobase,myisam \ + --with-extra-charsets=all \ + --with-ssl +make benchdir_root=/tmp/mysql-bench install +rm -rf /tmp/mysql cd /usr/lib -ln -sf mysql/libmysqlclient{,_r}.so* . +ln -v -sf mysql/libmysqlclient{,_r}.so* . # Copying default configuration file. -cp /usr/share/mysql/my-medium.cnf /etc/my.cnf +install -v -m644 /usr/share/mysql/my-medium.cnf /etc/my.cnf +sed -i -e s/^skip-federated/#skip-federated/ /etc/my.cnf mysql_install_db --user=mysql chgrp mysql /srv/mysql{,/test,/mysql}