(1) The installation of mysql5.5 requires compilation and installation of mysql5.5 and 5.1. mysql uses cmake as the compilation Engineering tool. This is the biggest difference from mysql5.1.
(1) The installation of mysql5.5 requires compilation and installation of mysql5.5 and 5.1. mysql uses cmake as the compilation Engineering tool. This is the biggest difference from mysql5.1.
(1) Requirements for installing mysql5.5
The compilation and installation of mysql5.5 is a little different from that of 5.1, because mysql uses cmake as the compilation Engineering tool.
This is the biggest difference from mysql5.1, so the Toolkit required when installing mysql5.5 is also different. It is found that using cmake to compile mysql is much faster than before.
(1) The cmake package is mandatory. You can use apt-get install cmake to install cmake on Ubuntu.
(2) The bazaar package is also required. you can install apt-get install bzr on ubuntu.
For more information about bazaar, see bazaar.
(3) bison is required and can be installed as follows. apt-get install bison
(4) apt-get install libncurses5-dev this package is also required.
(2) install mysql5.5
(1) decompress mysql such as tar zxvf mysql-5.5.8.tar.gz
(2) cd mysql-5.58
(3) groupadd mysql
(4) useradd-g mysql
(5) cmake.-DCMAKE_INSTALL_PREFIX =/usr/local/lamp/mysql5.5.8/
(6) If no error is reported, it indicates that cmake has been successfully completed. You can run the following command:
Make
(7) make
(8) If there are no errors, run make install
(9) cd/usr/local/lamp/mysql5.5.8/
(10) chown-R mysql.
(11) chgrp-R mysql.
(12) chown-R root.
(13) chown-r mysql data
(14) cp support-files/my-medium.cnf/etc/my. cnf
(15) if there is no installation error, you can start mysql and use bin/mysqld_safe -- user = mysql &
(17) Enter mysql with bin/mysql-u root
(3) Considerations
(1) If you have specified the installation directory, the directory must exist and have the permission to read and write.
(2) If cmake fails, run the following command:
Rm CmakeCache.txt
Make clean
After resolving the error, try again cmake
For more information about Ubuntu, see the Ubuntu special page? Tid = 2