MySQL8.0.11安裝總結(jié)教程圖解
安裝環(huán)境:
CAT /etc/os-release 查看centos系統(tǒng)版本信息;
getconf LONG_BIT 獲取慚怍系統(tǒng)位數(shù)
系統(tǒng)為 64位 centos 7
配置安裝源:
rpm -Uvh https://repo.mysql.com/mysql57-community-release-el7-11.noarch.rpm yum --enablerepo=mysql80-community install mysql-community-server
啟動(dòng)mysql服務(wù)
systemctl start mysqld.service
或者
service mysqld start
mysql 服務(wù)狀態(tài):
systemctl status mysqld
或者
service mysqld status 實(shí)際上也是會(huì)轉(zhuǎn)換為systemctl status mysqld去獲取狀態(tài)
查看mysql root 臨時(shí)密碼
grep "A temporary password" /var/log/mysqld.log
根據(jù)臨時(shí)密碼重置新密碼和密碼策略
mysql_secure_installation ;
Password Policy:
按照提示步驟一步步完成;
設(shè)置可以遠(yuǎn)程連接
firewall-cmd --add-port=3306/tcp --permanent 開放數(shù)據(jù)庫(kù)訪問(wèn)端口 tcp 協(xié)議
firewall-cmd --reload 重新加載防火墻信息
firewall-cmd --list-ports 查看開放的端口信息
lsof -i:3306 驗(yàn)證
mysql 客戶端登錄驗(yàn)證
查看版本:
有的客戶端連接會(huì)出現(xiàn) error 2059錯(cuò)誤
主要解決方案:
更改default_authentication_plugin = mysql_native_password
vim /etc/my.cnf
重啟服務(wù)就可以連接了;有可能沒(méi)有重啟成功;(如果不行 應(yīng)該為1045,可能操作系統(tǒng)默認(rèn)連接為127.0.0.1,不是localhost導(dǎo)致連接不上,更改用戶Host
use mysql; update user set Host='%' where User='root';windows 客戶端連接時(shí)出現(xiàn), 這種應(yīng)該和 error 2059: Authentication plugin 'caching_sha2_password' can not be loaded '----' 無(wú)關(guān) );
安裝的時(shí)候可以明顯感覺(jué)到MySQL8.0 新特性 安全屬性提高非常多;
總結(jié)
以上所述是小編給大家介紹的MySQL8.0.11安裝總結(jié)教程圖解,希望對(duì)大家有所幫助,如果大家有任何疑問(wèn)請(qǐng)給我留言,小編會(huì)及時(shí)回復(fù)大家的。在此也非常感謝大家對(duì)本站網(wǎng)站的支持!
版權(quán)聲明:本站文章來(lái)源標(biāo)注為YINGSOO的內(nèi)容版權(quán)均為本站所有,歡迎引用、轉(zhuǎn)載,請(qǐng)保持原文完整并注明來(lái)源及原文鏈接。禁止復(fù)制或仿造本網(wǎng)站,禁止在非www.sddonglingsh.com所屬的服務(wù)器上建立鏡像,否則將依法追究法律責(zé)任。本站部分內(nèi)容來(lái)源于網(wǎng)友推薦、互聯(lián)網(wǎng)收集整理而來(lái),僅供學(xué)習(xí)參考,不代表本站立場(chǎng),如有內(nèi)容涉嫌侵權(quán),請(qǐng)聯(lián)系alex-e#qq.com處理。