[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[cobalt-users] (RaQ3) Installation MySQL 3.22.32 Step-by-Step guide



Hello,

This is the step by step guide i made for installing mysql on customers raq's... I think its really handy, and you got more controll than with standard rpm's or pkg files.. this installation has been debugged for about 1 month now.. so it should work very nicely on a raq3.. if anything fails, please let me know.. perl rpm's don't have to be added, but i use a perl adddatabase script that needs it.. i'll post the script later.. the tar.gz file can be found on www.mysql.org.. rpm's on ftp.cobaltnet.com.. soon i will put up a webpage with all files, and guides..
the mysql package will restart automaticly when you reboot...

## installation mysql
echo "mysql:x:101:103:MySql User:/usr/local/mysql:">>/etc/passwd
echo "mysql:x:103:">>/etc/group
cd /root
tar zxvf mysql-3.22.32.tar.gz
cd mysql-3.22.32
./configure --prefix=/usr/local/mysql --with-unix-socket-path=/tmp/mysql.sock --with-mysqld-user=mysql
make
make install
chown mysql.mysql /usr/local/mysql
scripts/mysql_install_db
chown -R mysql.mysql /usr/local/mysql/var
mkdir /var/lib/mysql
ln -s /tmp/mysql.sock /var/lib/mysql/mysql.sock
rm -f /usr/bin/mysql
ln -s /usr/local/mysql/bin/mysql /usr/bin/mysql
chmod 755 /usr/local/mysql/var
/usr/local/mysql/bin/safe_mysqld &
/usr/local/mysql/bin/mysqladmin -u root password 'pass'
cp support-files/mysql.server /etc/rc.d/init.d/mysql
chmod 755 /etc/rc.d/init.d/mysql
echo "/etc/rc.d/init.d/mysql start">>/etc/rc.d/rc.sysinit
rpm -i perl-DBI-1.14-1.i386.rpm
rpm -i perl-Msql-Mysql-modules-1.2214-1.i386.rpm