falsecz
9/11/2013 - 11:07 AM

tokudb-install.sh

#!/bin/bash

groupadd  -g 927 mysql
useradd -r -u 927 -g mysql mysql
mkdir -pv /opt/tokutek
cd /opt
tar -xvzf /home/benesl/mariadb-5.5.30-tokudb-7.0.4-linux-x86_64.tar.gz
ln -sv mariadb-5.5.30-tokudb-7.0.4-linux-x86_64/ mysql

cd mysql
chown -Rv mysql:mysql .

cp -v support-files/my-huge.cnf /etc/my.cnf

mkdir /srv/mysql
chown -Rv mysql:mysql /srv/mysql


do my.cnf <<<
datadir = /srv/mysql
basedir = /opt/tokutek/mysql
user = mysql

scripts/mysql_install_db --user=mysql

ln -sv /opt/tokutek/mysql/support-files/mysql.server /etc/init.d/mysql

zakomentovat v nem
basedir a datadir



log = /var/log/mysqld.log
log-error = /var/log/mysqld.error.log


touch /var/log/mysqld.log
chown mysql:mysql /var/log/mysqld.log


touch /var/log/mysqld.error.log
chown mysql:mysql /var/log/mysqld.error.log


ln -s /opt/tokutek/mysql/bin/mysql /usr/local/bin/mysql