Skip to content

Instantly share code, notes, and snippets.

@adamhunter
Created May 5, 2010 15:03
Show Gist options
  • Select an option

  • Save adamhunter/390897 to your computer and use it in GitHub Desktop.

Select an option

Save adamhunter/390897 to your computer and use it in GitHub Desktop.
groupadd mysql
useradd -g mysql mysql
gunzip < mysql-VERSION.tar.gz | tar -xvf -
cd mysql-VERSION
CFLAGS="-O3" CXX=gcc CXXFLAGS="-O3 -felide-constructors \
-fno-exceptions -fno-rtti" ./configure \
--prefix=/usr/local/mysql-VERSION --enable-assembler \
--with-mysqld-ldflags=-all-static --with-plugins=innobase
make
make install
cp support-files/my-medium.cnf /etc/my.cnf
ln -s /usr/local/mysql-VERSION /usr/local/mysql
cd /usr/local/mysql
chown -R mysql .
chgrp -R mysql .
bin/mysql_install_db --user=mysql
chown -R root .
chown -R mysql var
bin/mysqld_safe --user=mysql &
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment