Use yum to install mysql and centos6.4yum on CentOS6.4

Source: Internet
Author: User

Use yum to install mysql and centos6.4yum on CentOS6.4

Data usage is basically involved in software development. For example, the simplest user logon and Registration requires database storage and management. Mysql is the most commonly used database in the project development and testing process.

Let's share with you the following: how to install the mysql database using yum on CentOS, using CentOS6.4 as an example.

Tools/Raw Materials

Yum Library

Mysql database

CentOS6.4 _ 64bit

Method/step

Check whether the built-in mysql of CentOS is installed.

Input: yumlistinstalled | grepmysql

If you have a built-in mysql, how can you uninstall the built-in mysql database of CentOS?

Input: yum-yremovemysql-libs.x86_64, unmounted sequentially if there are multiple dependency files.

When the result is displayed as Complete! The uninstallation is complete.

View the mysql version information on the yum database (the CentOS system needs to connect to the network normally ).

Input: yumlist | grepmysql or yum-ylistmysql *

Use yum to install the mysql database.

Enter yum-yinstallmysql-servermysqlmysql-devel. The command will install mysql-server, mysql, and mysql-devel. When the result is displayed as "Complete !" Installation is complete.

Note: Installing mysql only installs the database. Only installing mysql-server is equivalent to installing the client.

View the version of the mysql database that you just installed.

Input: rpm-qimysql-server

The above is all the content of this article. I hope it will be helpful for your learning and support for helping customers.

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.