Install MySQL under Linux

Source: Internet
Author: User
Tags mysql download mysql version

1.1. Installing MySQL under Linux

First step: Check if MySQL is installed.

Rpm-qa|grep MySQL

Step two: If the MySQL version is not the desired version. Need to uninstall MySQL.

Yum remove MySQL mysql-server mysql-libs mysql-common

Rm-rf/var/lib/mysql

Rm/etc/my.cnf

Step three: Install MySQL. You need to install with the Yum command. You need to install MySQL download source before installing MySQL. Need to be downloaded from Oracle's official website.

1) Download the source package for MySQL.

Mine is centos6.4. The corresponding RPM package is: mysql-community-release-el6-5.noarch.rpm

2) Install MySQL download source:

Yum Localinstall mysql-community-release-el6-5.noarch.rpm

3) Install MySQL online:

Yum Install Mysql-community-server

Fourth step: Start MySQL

Service mysqld Start

Fifth step: You need to set a password for the root user.

/usr/bin/mysqladmin-u root password ' new-password '//Set password for root account

Sixth step: Remote connection authorization.

GRANT all privileges on * * to ' myuser ' @ ' percent ' identified by ' MyPassword ' with GRANT OPTION;

Note: ' MyUser ', ' mypassword ' need to be replaced with the actual user name and password.

Install MySQL 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.