Install and configure MySQL5.5.20 in hatemediiselinuxserverrelease5.4 (Tikanga)

Source: Internet
Author: User
The source code package compilation before Mysql5.5 adopts the make method, and cmake encoding method is adopted from 5.5. After obtaining the system, we can check whether the cmake package is installed in the system. If not, download a package from the official website. Is: bytes/

The source code package compilation before Mysql5.5 adopts the make method, and cmake encoding method is adopted from 5.5. After obtaining the system, we can check whether the cmake package is installed in the system. If not, download a package from the official website. For: http://www.cmake.org/cmake/resources/software.html

1. In cmake-2.8.7.tar.gz

2../configure -- prefix =/usr/local/cmake; make & make install;

3. ln-s/usr/local/cmake/bin/cmake

4.decompress mysql-5.5.20.tar.gz

Help: cmake.-LH (http://dev.mysql.com/doc/refman/5.5/en/source-configuration-options.html)

Cmake-DCMAKE_INSTALL_PREFIX =/data1/mysql558-DMYSQL_UNIX_ADDR =/tmp/mysql. sock-DDEFAULT_CHARSET = utf8-DDEFAULT_COLLATION = utf8_general_ci-DWITH_EXTRA_CHARSETS: STRING = all-round = 1-DWITH_INNOBASE_STORAGE_ENGINE = 1-DWITH_READLINE = 1-DENABLED_LOCAL_INFILE = 1-DMYSQL_DATADIR =/data1/mysqldata-DWITH_FEDERATED_STORAGE_ENGINE = on

Make & make install

The subsequent steps are as follows.

Note:

Clear the cache information of the old object file box during recompilation

Make clean

Rm-f CMakeCache.txt

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.