Skip to content

Instantly share code, notes, and snippets.

@peerapongsam
Created January 18, 2016 08:27
Show Gist options
  • Save peerapongsam/06c43abbb14f1ac6f609 to your computer and use it in GitHub Desktop.
Save peerapongsam/06c43abbb14f1ac6f609 to your computer and use it in GitHub Desktop.
# Preconfiguration setup
groupadd mysql
useradd -r -g mysql -s /bin/false mysql
# Beginning of source-build specific instructions
tar zxvf mysql-VERSION.tar.gz
cd mysql-VERSION
cmake .
make
make install
# End of source-build specific instructions
# Postinstallation setup
cd /usr/local/mysql
chown -R mysql .
chgrp -R mysql .
scripts/mysql_install_db --user=mysql
chown -R root .
chown -R mysql data
bin/mysqld_safe --user=mysql &
# Next command is optional
cp support-files/mysql.server /etc/init.d/mysql.server
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment