Compile and install MySQL 5.1.x

Source: Internet
Author: User

The Gentoo Linux operating system (pronounced/mongod zookeeper ntu kernel/) is a Linux meta release version based on the Portage package management system. This project and its products are named after the babaya penguin. The Gentoo package management system is designed to be modular, portable, easy to maintain, flexible, and optimized for user machines. Packages can generally be built from the source code, which continues the port tradition. For convenience, some large software packages are also provided to pre-compile binary files in multiple architectures.

Unlike most GNU/Linux releases, Gentoo Linux provides you with a large number of application source code. Each part of Gentoo Linux can be re-compiled and built on the end user's system, even including the most basic system library and compiler itself. The software is provided through dependency description and source code image. Gentoo Linux provides a large number of software for users to choose from. The standard source code image contains 30 GB of data. Selection not only exists in the overall aspect of the software, but also in the software. Because you can compile software locally, you can specify parameters and variables.

The advantage of specifying parameters is not only that users understand the settings, but also that users can improve the performance of hardware. In addition, you can use your favorite patches or plug-ins to adjust the software features. For example, the current Gentoo Linux kernel release includes 35 types.

Due to the significant differences in the installation methods of the system and application software, the Gentoo Linux community has a deep discussion on the installation content. Even if you do not use Gentoo Linux, you can understand the internal settings of the software by understanding the parameter selection. Configuration settings of the application software are recorded in the ebuild file and managed by the ebuild and emerge commands.

The following describes how to compile and install MySQL 5.1.x in Gentoo:

./configure \--prefix=/usr/local/mysql \--enable-assembler \--without-debug \--with-mysqld-ldflags=-all-static \--with-charset=utf8 \--with-extra-charsets=all \--with-unix-socket-path=/usr/local/mysql/mysql.sock \--enable-thread-safe-client \--with-mysqld-user=mysql \--with-plugins=partition,heap,innobase,myisammakemake install

Ps:
Add default-storage-engine = INNODB under my. cnf [mysqld.
Show engines after restart.

Related Article

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.