一.安装mysql
1.1Yum安装mysql
#安装
[root
master~]#yuminstall–ymariadbmariadb-develmariadb-server#安装完成之后可以查询一下软件是否安装成功
[root
master~]#rpm-qagrepmariadb
mariadb-libs-5.5.65-1.el7.x86_64
mariadb-server-5.5.65-1.el7.x86_64
mariadb-5.5.65-1.el7.x86_64
mariadb-devel-5.5.65-1.el7.x86_64
#启动mariadb
[root
master~]#systemctlstartmariadb#查看进程
[root
master~]#ps-efgrepmysql
1.2源码安装mysql
#安装编译依赖软件
[root
node2~]#yuminstallgccncurses-devellibaiobisongcc-c++gitcmakencurses-developensslopenssl-devel-y#下载安装包
[root
node2opt]#wget