部署Mysql5.7版本灰署。并正常登陸使用。
部署過程:
安裝包:
設(shè)置內(nèi)存:調(diào)整為2G內(nèi)存
關(guān)閉防火墻和selinux
訪問國內(nèi)Mysql鏡像站:下載軟件包:mysql-community-server-5.7.25-1.el7.x86_64.rpm
[root@localhost ~]# wget http://mirrors.ustc.edu.cn/mysql-ftp/Downloads/MySQL-5.7/mysql-community-server-5.7.25-1.el7.x86_64.rpm
安裝相關(guān)軟件:三個軟件:yum? install? -y? net-tools.x86_64? ? libaio.x86_64? ? perl.x86_64
?
? ? ?
5.安裝Mysql服務(wù)器: yum install -y mysql-community*
遇到報錯就卸載掉mariadb? 產(chǎn)生了沖突
6.啟動Mysql服務(wù)器:
systemctl start mysqld
systemctl enable mysqld
7.查詢Mysql服務(wù)器默認密碼: grep 'password' /var/log/mysqld.log
?
修改:mysqladmin -uroot? -p’tO7,Y8>zVtw3’? password? ‘QianFeng@123’
登錄Mysql服務(wù)器系統(tǒng):
? 查看
?