Note | |
---|---|
You may skip this section and use the MySQL package that comes with your distribution. If you choose to install MySQL by hand, you need root privileges. |
Build instructions :
su -
groupadd mysql
useradd -g mysql mysql
mkdir ~/pydadl_install
cd ~/pydadl_install
wget http://mirrors.24-7-solutions.net/pub/mysql/Downloads/MySQL-5.0/mysql-5.0.51a-linux-i686-glibc23.tar.gz
tar xzvf mysql-5.0.51a-linux-i686-glibc23.tar.gz
cd mysql-5.0.51a-linux-i686-glibc23
scripts/mysql_install_db --user=mysql
chown -R root .
chown -R mysql data
chgrp -R mysql .
mv -vf bin/* /usr/local/pydadl/bin
mv -vf include/* /usr/local/pydadl/include
mv -vf lib/* /usr/local/pydadl/lib
mv -vf share/* /usr/local/pydadl/share
rm -rf bin include lib share
mv -vf * /usr/local/pydadl
cd /usr/local/pydadl
rm -rf ~/pydadl_install
./bin/mysqld_safe --user=mysql &
exit
You can add the following two lines to your init scripts so the MySQL server starts automatically at boot :
cd /usr/local/pydadl
./bin/mysqld_safe --user=mysql &