Install MySQL source code on Linux

Source: Internet
Author: User
Environment: RHEL 3, mysql-5.0.22 source code package (: http://download.mysql.cn/src/2006/0710/5544.html)

Use the root user to perform the following steps:

Groupadd MySQL

Useradd-G MySQL

CD/usr/local

Tar zxvf/root/mysql-5.0.22.tar.gz # absolute path of MySQL source code package

CD mysql-5.0.22

./Configure -- enable-thread-safe-client -- With-Unix-socket -- With-mysqld-user = MySQL -- With-charset = GBK -- prefix =/usr/local/MySQL

Make # This step takes a long time

Make with_xcharset = GBK, bg2312 install

Scripts/mysql_install_db

Chown-r root/usr/local/MySQL

Chown-r MySQL/usr/local/MySQL/var

Chgrp-r MySQL/usr/local/MySQL

CP support-files/my-medium.cnf/etc/My. CNF

/Usr/local/MySQL/bin/mysqld_safe & # Start MySQL

/Usr/local/MySQL/bin/mysqladmin-u Root Password 'new-password' # modify the MySQL Root User Password
 

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.