CentOS 6.0 Installation mysql-5.1.73 process

Source: Internet
Author: User

First, installation environment

Centos-6.0-i386-minimal.iso

Kernel: 2.6.32-71.el6.i686

MySQL version: 5.1.73

Second, installation steps

Useradd-m-s/sbin/nologin MySQL

Mkdir-p/app/tools

cd/app/tools/

wget http://dev.mysql.com/get/Downloads/MySQL-5.1/mysql-5.1.73.tar.gz

Tar zxf mysql-5.1.73.tar.gz

CD mysql-5.1.73

1> Start Configure

./configure \

--prefix=/usr/local/mysql \

--with-unix-socket-path=/usr/local/mysql/tmp/mysql.sock \

--localstatedir=/usr/local/mysql/data \

--enable-assembler \

--enable-thread-safe-client \

--with-mysqld-user=mysql \

--with-big-tables \

--without-debug \

--with-pthread \

--enable-assembler \

--with-extra-charsets=complex \

--with-readline \

--WITH-SSL \

--with-embedded-server \

--enable-local-infile \

--with-plugin-plugin \

--with-mysqld-ldflags=-all-static \

--with-client-ldflags=-all-static

(1) appears as: Configure:error:no acceptable C compiler found in $PATH

Missing GCC

Yum-y Install GCC

(2) appear as: Checking for termcap functions Library ... configure:error:No curses/termcap Library found

Missing Ncurses-devel

Yum-y Install Ncurses-devel


Thank for choosing mysql! End


2> make

(1) Appear as:

.. /depcomp:line 571:exec:g++: Not Found

MAKE[1]: * * [MY_NEW.O] Error 127

Missing gcc-c++

Yum-y Install gcc-c++

Re-configure in Make


3>make Install


Third, configure MySQL

[email protected] mysql-5.1.73]# ll SUPPORT-FILES/*.CNF

-rw-r--r--. 1 root root 4714 August 16:27 support-files/my-huge.cnf

-rw-r--r--. 1 root root 19763 August 16:27 support-files/my-innodb-heavy-4g.cnf

-rw-r--r--. 1 root root 4688 August 16:27 support-files/my-large.cnf

-rw-r--r--. 1 root root 4699 August 16:27 support-files/my-medium.cnf

-rw-r--r--. 1 root root 2467 August 16:27 support-files/my-small.cnf

[Email protected] mysql-5.1.73]#/BIN/CP support-files/my-small.cnf/etc/my.cnf

[Email protected] mysql-5.1.73]# mkdir-p/usr/local/mysql/data

[Email protected] mysql-5.1.73]# chown-r mysql/usr/local/mysql

[Email protected] mysql-5.1.73]#/usr/local/mysql/bin/mysql_install_db--user=mysql


Four, start MySQL

/usr/local/mysql/bin/mysqld_safe &

V. Configuring MySQL Global usage path

[Email protected] mysql-5.1.73]# echo ' Export path= $PATH:/usr/local/mysql/bin ' >>/etc/profile

[Email protected] mysql-5.1.73]# Source/etc/profile

Vi. configuring INIT.D Start-up service

[email protected] mysql-5.1.73]# CP support-files/mysql.server/etc/init.d/mysqld

[Email protected] mysql-5.1.73]# chmod 700/etc/init.d/mysqld

Seven, set boot boot

[Email protected] mysql-5.1.73]# chkconfig--add mysqld

[Email protected] mysql-5.1.73]# chkconfig mysqld on

[Email protected] mysql-5.1.73]# chkconfig--list mysqld

Mysqld 0: Off 1: Off 2: Enable 3: Enable 4: Enable 5: Enable 6: Off

Eight, set the MySQL password

[Email protected] mysql-5.1.73]# mysqladmin-u root password ' 123456 '

[[email protected] mysql-5.1.73]# MySQL

ERROR 1045 (28000): Access denied for user ' root ' @ ' localhost ' (using Password:no)

[Email protected] mysql-5.1.73]# mysql-uroot-p

Enter Password:


This article is from the "Liuk Problem solving" blog, so be sure to keep this source http://liuk1303.blog.51cto.com/10449284/1688982

CentOS 6.0 Installation mysql-5.1.73 process

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.