Home  >  Article  >  Database  >  Use yum to install mysql_MySQL on CentOS6.4

Use yum to install mysql_MySQL on CentOS6.4

WBOY
WBOYOriginal
2016-11-30 23:59:371007browse

When doing software development, it basically involves the use of data. For example, in the simplest form of user login and registration, this user information needs to be stored and managed in a database. The most commonly used database during project development and testing is mysql.

Xiaohe will share with you below: How to use yum to install mysql database on CentOS system, taking CentOS6.4 system as an example.

Tools/Materials

yum library

Mysql database

CentOS6.4_64bit

Method/Steps

Check whether CentOS comes with mysql installed.

Input: yumlistinstalled|grepmysql

If there is mysql installed, how to uninstall the mysql database that comes with the CentOS system?

Input: yum-yremovemysql-libs.x86_64. If there are multiple dependent files, uninstall them one by one.

When the result shows Complete! The uninstallation is complete.

Check the mysql version information on the yum library (CentOS system needs to be connected 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 displays "Complete!", the installation is complete.

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

Check the version information of the newly installed mysql database.

Input: rpm-qimysql-server

The above is the entire content of this article. I hope it will be helpful to everyone’s study and I hope you will support me a lot.

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn