Yum command to install MySQL

Source: Internet
Author: User
Tags configuration settings mysql version

Install the MySQL database using the Yum command and the environment is a 64-bit centos6.4 system.

1, check whether the system comes with MySQL installed, execute command: Yum list installed | grep MySQL

2. If installed, uninstall, use command: yum-y remove mysql-libs.x86_64

  

3. View MySQL version information on the Yum Library, command: Yum list | grep MySQL or yum-y list mysql*

  

4. Install the MySQL database using yum, using the command: yum-y install mysql-server MySQL mysql-devel

  

5. View MySQL version information, command: Rpm-qi mysql-server

  

6, start the MySQL, execute command: Service mysqld start, if need to boot to execute command: chkconfig mysqld on

7, the Database Security Configuration Wizard, execute the command: mysql_secure_installation, follow the prompts step-by-step operation on the line.

8, login mysql, login password in the security configuration settings, execute command: mysql-uroot-p

  

  

Yum command to install 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.