mysql5.1 compiled installation----for the first time you install MySQL

Source: Internet
Author: User

Since it is the first time to install, it is not possible to determine whether you have installed the build and MySQL to rely on the plug-in, use I was as your most original installation environment.

1, install the mysql5.1 dependency package

Yum install-y gcc gcc-c++ autoconf* automake* zlib* libxml* ncurses-devel* libgcrypt* libtool* openssl*

2, upload the MySQL installation package, you can download the official website, note is to download the source code.

3. Upload root directory to root

4. Start compiling and installing mysql5.1

Mkdir-p/data/mysql

Useradd MySQL

Chown Msyql.mysql/data/mysql

TAR-XF mysql-5.1.73.tar.gz

CD mysql-5.1.73.tar.gz

./configure--prefix=/usr/local/mysql--localstatedir=/data/mysql--enable-assembler--with-client-ldflags=- All-static--with-mysqld-ldflags=-all-static--with-pthread--enable-static--with-big-tables--without-ndb-debug-- With-charset=utf8--with-extra-charsets=all--without-debug--enable-thread-safe-client--enable-local-infile-- With-plugins=max

Make && make install

CP SUPPORT-FILES/MY-HUGE.CNF/ETC/MY.CNF

CP Support-files/mysql.server/etc/init.d/mysqld

Vi/etc/init.d/mysqld

Basedir =/usr/local/mysql

DataDir =/data/mysql

Generation more

mysql5.1 compiled installation----for the first time you install MySQL

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.