Compile and install MySQL5.5 on Ubuntu10 Platform

Source: Internet
Author: User
(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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.