Changes

Jump to navigation Jump to search
2,438 bytes added ,  17:35, 4 December 2013
Notes on installing mariadb 5.5.34 'alongside' mysql
Line 1: Line 1:  +
===Draft notes on installing mariadb 'alongside' mysql===
 +
<nowiki>
 +
#####################################################################################
 +
# BEGIN
 +
#####################################################################################
 +
# yum repos aren't useful; use the side-by-side install
 +
# Install mariadb side-by-side with mysql on SME Server v8
 +
# From: https://mariadb.com/kb/en/installing-mariadb-alongside-mysql/
 +
#
 +
# create user 'mariadb' in server-manager
 +
#
 +
cd ~
 +
mkdir -p addons
 +
cd addons
 +
RELEASE=5.5.34
 +
wget https://downloads.mariadb.org/interstitial/mariadb-$RELEASE/kvm-bintar-hardy-x86/mariadb-$RELEASE-linux-i686.tar.gz/from/http://mirror.jmu.edu/pub/mariadb
 +
cd /opt
 +
tar zxvf ~/addons/mariadb-$RELEASE-linux-i686.tar.gz
 +
ln -s mariadb-$RELEASE-linux-i686 mariadb
 +
mkdir mariadb-data
 +
cp mariadb/support-files/my-medium.cnf mariadb-data/my.cnf
 +
#
 +
# edit my.cnf as described on the mariadb-alongside-mysql howto (link above)
 +
chown -R mariadb:mariadb mariadb-data mariadb mariadb-$RELEASE-linux-i686
 +
#
 +
cp mariadb/support-files/mysql.server /etc/init.d/mariadb
 +
chmod +x /etc/init.d/mariadb
 +
#
 +
# edit /etc/init.d/mariadb as described in the howto
 +
#
 +
cd /opt/mariadb
 +
scripts/mysql_install_db --defaults-file=/opt/mariadb-data/my.cnf
 +
cd /etc/init.d
 +
chkconfig --add mariadb
 +
chkconfig --levels 3 mariadb on
 +
# SME Server uses runlevel 7...
 +
mv /etc/rc3.d/S64mariadb /etc/rc7.d
 +
#
 +
# customizations not mentioned in the howto:
 +
mkdir /var/run/mariadb
 +
chown mariadb:maridb /var/run/mariadb
 +
#
 +
# customize the execution line in /etc/init.d/mariadb
 +
#
 +
# version from howto:
 +
#  $bindir/mysqld_safe --defaults-file=/opt/mariadb-data/my.cnf --datadir="$datadir" --pid-file="$mysqld_pid_file_path" $other_args >/dev/null 2>&1 &
 +
#
 +
# version I'm using:
 +
# $bindir/mysqld_safe --defaults-file=/opt/mariadb-data/my.cnf --datadir="/opt/mariadb-data" --pid-file="/var/run/mariadb/mariadb.pid" $other_args >/dev/null 2>&1 &
 +
#
 +
# Finally, testing access requires asking for a password, then entering an empty password (SME feeds the 'root'@'localhost' password to mysql by default:
 +
# mysql -e "SELECT VERSION();" --port=3307 --protocol=TCP -p
 +
#
 +
# set root password in mariadb same as root password in mysql
 +
mysql --port=3307 --protocol=TCP -p < /var/service/mysqld/set.password
 +
#
 +
# Now the example version check from the howto works:   
 +
mysql -e "SELECT VERSION();" --socket=/opt/mariadb-data/mariadb.sock
 +
</nowiki>
 +
 +
===Notes on check_earlytalker===
 
Why did you remove the Request_for_deletion template on the check_earlytalker page? AFAIK it is obsolete and should be deleted according to http://forums.contribs.org/index.php/topic,46234.msg226418.html#msg226418 - <small>—&nbsp;[[User:Cactus|Cactus]] ([[User talk:Cactus|talk]]&nbsp;|&nbsp;[[Special:Contributions/Cactus|contribs]])&nbsp;</small> 07:05, 16 February 2012 (MST)
 
Why did you remove the Request_for_deletion template on the check_earlytalker page? AFAIK it is obsolete and should be deleted according to http://forums.contribs.org/index.php/topic,46234.msg226418.html#msg226418 - <small>—&nbsp;[[User:Cactus|Cactus]] ([[User talk:Cactus|talk]]&nbsp;|&nbsp;[[Special:Contributions/Cactus|contribs]])&nbsp;</small> 07:05, 16 February 2012 (MST)
  

Navigation menu