中国少妇被黑人XXXXX

系統城裝機大師 - 固鎮縣祥瑞電腦科技銷售部宣傳站!

當前位置:首頁 > 數據庫 > Mysql > 詳細頁面

系統城分享CentOS7下安裝MySQL5.7.39的詳細過程

時間:2022-09-11來源:www.zspotcard.com作者:電腦系統城

一、下載

下載地址:https://dev.mysql.com/downloads/mysql/

二、解壓

1 tar xvf mysql-5.7.39-1.el7.x86_64.rpm-bundle.tar

三、卸載已安裝包

1
2
rpm -qa|grep mariadb
mariadb-libs-5.5.68-1.el7.x86_64
1 rpm -e --nodeps mariadb-libs-5.5.68-1.el7.x86_64

四、按順序安裝rpm包

1
2
3
4
5
6
rpm -ivh mysql-community-common-5.7.39-1.el7.x86_64.rpm
rpm -ivh mysql-community-libs-5.7.39-1.el7.x86_64.rpm
rpm -ivh mysql-community-client-5.7.39-1.el7.x86_64.rpm
// 如果安裝 mysql-community-server-5.7.39-1.el7 報 libaio.so.1 依賴錯誤,需先安裝 libaio-0.3.109-13.el7.x86_64.rpm
rpm -ivh libaio-0.3.109-13.el7.x86_64.rpm
rpm -ivh mysql-community-server-5.7.39-1.el7.x86_64.rpm

安裝 server 還可能報錯:

1
2
3
4
rpm -ivh mysql-community-server-5.7.39-1.el7.x86_64.rpm
warning: mysql-community-server-5.7.39-1.el7.x86_64.rpm: Header V4 RSA/SHA256 Signature, key ID 3a79bd29: NOKEY
error: Failed dependencies:
    net-tools is needed by mysql-community-server-5.7.39-1.el7.x86_64

執行以下命令安裝 net-tools 解決:

 

1 yum install net-tools -y

五、啟動

1 systemctl  start  mysqld

六、找到初始密碼

1 cat /var/log/mysqld.log | grep 'password is generated'

七、修改密碼并授權

1
2
3
alter user 'root'@'localhost' identified by 'xxxxxx';
grant all privileges on *.*  to  'root'@'%'  identified by 'xxxxxx'  with grant option;
flush privileges;

八、開啟防火墻,允許外網訪問

1
2
3
firewall-cmd --zone=public --add-port=3306/tcp --permanent
firewall-cmd --reload
firewall-cmd --list-ports

到此這篇關于CentOS7下安裝MySQL5.7.39的文章就介紹到這了

分享到:

相關信息

系統教程欄目

欄目熱門教程

人氣教程排行

站長推薦

熱門系統下載

中国少妇被黑人XXXXX,chinese性旺盛老熟女,18禁强伦姧人妻又大又_主页