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.