Skip to main content

Posts

Showing posts from July, 2008

MySQL Compilation

# groupadd mysql # useradd -g mysql -c "MySQL Server" mysql # tar zxf mysql-5.0.45.tar.gz # cd /usr/local/src/ mysql-5.0.45 # .chown -R root.root * # ./configure \--prefix=/usr/local/mysql \--localstatedir=/usr/local/mysql/data \--disable-maintainer-mode \--with-mysqld-user=mysql \--with-unix-socket-path=/tmp/mysql.sock \--without-comment \--without-debug \ # groupadd mysql # useradd -g mysql -c "MySQL Server" mysql # tar zxf mysql-5.0.45.tar.gz # cd /usr/local/src/ mysql-5.0.45 # chown -R root.root * # ./configure \--prefix=/usr/local/mysql \--localstatedir=/usr/local/mysql/data \--disable-maintainer-mode # \--with-mysqld-user=mysql \--with-unix-socket-path=/tmp/mysql.sock \--without-comment \--without-debug \--without-bench # make && make install # ./scripts/mysql_install_db # chown -R root:mysql /usr/local/mysql # chown -R mysql:mysql /usr/local/mysql/data # cp support-files/my-medium.cnf /etc/my.cnf # chown root:sys /etc/my.cnf # chmod 644 /etc/my.cnf #