Created
January 18, 2016 08:27
-
-
Save peerapongsam/06c43abbb14f1ac6f609 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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