Centos5 compiler installation mysql-4.1.22

Source: Internet
Author: User

Install-win-source file Excellent installation command:

The basic commands that you must execute to install a MySQL Source
Distribution are:

shell> groupadd mysql
shell> useradd-G mysql
shell> tar-zxvf mysql-4.1.22.tar.gz
shell> Cd mysql-4.1.22
shell>. /configure -- prefix =/usr/local/MySQL -- localstatedir =/Data
shell> make install
shell> CP support-files/my-medium.cnf /etc/My. CNF
shell> Cd/usr/local/MySQL
shell> bin/mysql_install_db -- user = mysql
shell> chown-r root.
shell> chown-r MySQL/Data
shell> chgrp-r MySQL.
shell> bin/mysqld_safe -- user = MySQL &
shell> bin/mysqladmin-P shutdown

Create and run the msyqld command
# Cp mysql-4.1.22/support-files/MySQL. Server/etc/rc. d/init. d/mysqld
# Chmod + x/etc/rc. d/init. d/mysqld

#/Etc/rc. d/init. d/mysqld start

Add auto start
# Chkconfig-add mysqld

Modify the root password
# Mysqladmin-uroot password 123456

Install the dependent Development Kit

# Yum install gcc
# Yum install glib

# Yum install gcc-C ++
# Yum install esound-devel
# Yum install ncurses-devel

Several commands
Chgrp(Change Group)
Function Description: group to which the file or directory belongs.

Chmod(Change Mode)
Function Description: Change the file or directory permissions.

Chown(Change owner)
Function Description: Change the owner or group of a file or directory.

 

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.