projects
/
hvlinux.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
-Now using a single file for all custom definitions and functions for each package.
[hvlinux.git]
/
stage3
/
cis-mysql
diff --git
a/stage3/cis-mysql
b/stage3/cis-mysql
index
2cc93ce
..
7256041
100755
(executable)
--- 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}
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 \
--prefix=/usr \
--sysconfdir=/etc \
--libexecdir=/usr/sbin \
@@
-23,18
+23,21
@@
CPPFLAGS="-D_GNU_SOURCE" ./configure \
--enable-thread-safe-client \
--enable-assembler \
--enable-local-infile \
--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 \
--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
+make benchdir_root=/tmp/mysql-bench install
+rm -rf /tmp/mysql
cd /usr/lib
cd /usr/lib
-ln -sf mysql/libmysqlclient{,_r}.so* .
+ln -
v -
sf mysql/libmysqlclient{,_r}.so* .
# Copying default configuration file.
# 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}
mysql_install_db --user=mysql
chgrp mysql /srv/mysql{,/test,/mysql}