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.