Linux under CMake Compile, install, configure, and uninstall MySQL

Source: Internet
Author: User

WIN10 Virtual machine: VMware workstation PRO

Installation

# 1. View the system version

# 2. To the version of CentOS 7 under the MySQL website,
2.1. Select Community Edition (red box)

# 3. Place the downloaded installation package into the/usr/local/mysql folder (create your own new preparation) and unzip

Preparatory work
1. Install the CMake software (for customers choosing installation parameters like Weindows)

2. Install the dependent package Ncurses-devel (requires root account operation, otherwise
3. Create users and user groups

4. Unzip the installation package

5.cmake (
Customer Select installation Parameters )

6.make &
make install(perform customer-selected installation parameters )


/application/mysql

8. Configuring the initialization file, SUPPORT-FILE/MY-SMALL.CNF- /etc/my.cnf

9. Configure environment variables, note: application configuration in front
10. Configure Musql permissions for the installation directory Chown,chmod-r 17777/tmp

11. Enter Application/mysql/scripts, initialize./mysql_install_db--basedir=/...

12. Configure the boot file mysqld, Support-file/mysql-server CP to/etc/init.d/mysqld


Linux under CMake Compile, install, configure, and uninstall MySQL

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.