MySQL compilation installation and basic use under Linux

Source: Internet
Author: User
Tags iptables

First, the approximate operation procedure

Environment Introduction:

Os:center OS6.5

mysql:5.6 version

  

1. Turn off the firewall

View firewall Status: Service iptables status

    

This means that it is not closed.

Run the following command to turn off Firewall service iptables stop, and then view the firewall status again

    

       

Run this command to completely shut down: chkconfig iptables off

Run: Vi/etc/selinux/config

    

This changes to disabled.

2. Modify the configuration file

More/etc/sysctl.conf

3. Check if MySQL is installed

Rpm-qa |grep MySQL

    

Already installed, that unloading 5.6 bar, found an error, said to be dependent, can not be directly deleted

    

Then we use: Yum remove mysql*

4. Download the MySQL Package

(1) Download

Enter www.mysql.com, then select Download

    

Then find the Community edition

    

And then we found the community version of the service.

    

And find the version we're looking for.

    

Choose source code compilation and common Linux operating system

    

(2) Upload and install

"1" mount the optical drive in the virtual machine, set the optical drive will not elaborate, look at the picture

    

"2" Mount

Mount/dev/cdrom/mnt

#把光盘挂载到 the/MNT directory

     

MySQL compilation installation and basic use under Linux

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.