Tuesday, August 2, 2011

Install mysql

Install mysql

yum list | grep mysql



Choose the mysql you need to install and do the following.

yum install mysql-package




Manual install using rpm:



Download rpms from here and install:

http://httpupdate.cpanel.net/mysqlinstall/

rpm -ivh package-name
Manual install by building from source:

wget http://mysql.he.net/Downloads/MySQL-5.1/mysql-5.1.33.tar.gz
tar xzvf mysql-5.1.33.tar.gz
cd mysql-5.1.33./configure --prefix=/usr/local/mysql
--with-extra-charsets=complex --enable-thread-safe-client
--enable-local-infile --enable-shared --with-plugins=innobase

make

make install

cd /usr/local/mysql
sudo ./bin/mysql_install_db --user=mysql
sudo chown -R mysql ./var

Start mysql

mysql -uroot

No comments:

Post a Comment