Saturday 19 May 2012

MySQL 5.5 Installation from source


Installation of MySQL :

1) Download and extract the package :


2) shell> cmake .

3) shell> make

4) make install

End of source-build specific instructions

Post-installation setup
----------------------------------
1) cd /usr/local/mysql
2) chown -R mysql .
3) chgrp -R mysql .
4) scripts/mysql_install_db --user=mysql
5) chown -R root .
6) chown -R mysql data


#Next command is optional
shell> cp support-files/my-medium.cnf /etc/my.cnf

To start MySQL
-------------------------
bin/mysqld_safe --user=mysql &

#Next command is optional
shell> cp support-files/mysql.server /etc/init.d/mysql.server

Once we done this, we can start MySQL using the command “/etc/init.d/mysql.server start” .  

No comments:

Post a Comment