Install mysql using yum in CentOS

Source: Internet
Author: User

Install mysql using yum in CentOS
Tools/Raw Materials

  • Yum Library
  • Mysql database
  • CentOS6.4 _ 64bit
Method/step
  1. 1

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

    Input: yumlistinstalled | grepmysql

  2. 2/5

    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.

  3. 3/5

    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 *

  4. 4/5

    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.


  5. 5/5

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

    Input: rpm-qimysql-server


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.