新聞中心
這里有您想知道的互聯(lián)網(wǎng)營銷解決方案
Fedoraserver安裝Mysql8具體方法
MySQL 是最流行的關系型數(shù)據(jù)庫管理系統(tǒng),在 WEB 應用方面 MySQL 是最好的 RDBMS(Relational Database Management System:關系數(shù)據(jù)庫管理系統(tǒng))應用軟件之一,在本篇文章中重點為大家講解一下Fedora server 安裝Mysql8具體方法。

創(chuàng)新互聯(lián)是一家網(wǎng)站設計公司,集創(chuàng)意、互聯(lián)網(wǎng)應用、軟件技術為一體的創(chuàng)意網(wǎng)站建設服務商,主營產(chǎn)品:響應式網(wǎng)站設計、成都品牌網(wǎng)站建設、營銷型網(wǎng)站。我們專注企業(yè)品牌在網(wǎng)站中的整體樹立,網(wǎng)絡互動的體驗,以及在手機等移動端的優(yōu)質(zhì)呈現(xiàn)。網(wǎng)站制作、做網(wǎng)站、移動互聯(lián)產(chǎn)品、網(wǎng)絡運營、VI設計、云產(chǎn)品.運維為核心業(yè)務。為用戶提供一站式解決方案,我們深知市場的競爭激烈,認真對待每位客戶,為客戶提供賞析悅目的作品,網(wǎng)站的價值服務。
安裝 MySQL YUM 倉庫源
## Fedora 28 ##
dnf install https://dev.mysql.com/get/mysql80-community-release-fc28-1.noarch.rpm
## Fedora 27 ##
dnf install https://dev.mysql.com/get/mysql80-community-release-fc27-1.noarch.rpm
## Fedora 26 ##
dnf install https://dev.mysql.com/get/mysql80-community-release-fc26-1.noarch.rpm
CentOS 和 Red Hat (RHEL)
## CentOS 7 and Red Hat (RHEL) 7 ##
yum localinstall https://dev.mysql.com/get/mysql80-community-release-el7-1.noarch.rpm
CentOS 6 and Red Hat (RHEL) 6 ##
yum localinstall https://dev.mysql.com/get/mysql80-community-release-el6-1.noarch.rpm
安裝和更新
1.安裝
Fedora 28/27/26
dnf install mysql-community-server
CentOS 7.5/6.10 and Red Hat (RHEL) 7.5/6.10
yum install mysql-community-server
2.安裝 MySQL 5.7.23
Fedora 28/27/26
dnf --disablerepo=mysql80-community --enablerepo=mysql57-community install mysql-community-server
CentOS 7.5/6.10 and Red Hat (RHEL) 7.5/6.10
yum --disablerepo=mysql80-community --enablerepo=mysql57-community install mysql-community-server
3. 開啟 MySQL server 并設置開機自啟
Fedora 28/27/26 CentOS 7.5 Red Hat (RHEL) 7.5
systemctl start mysqld.service
use restart after update
systemctl enable mysqld.service
CentOS 6.10 and Red Hat (RHEL) 6.10
/etc/init.d/mysql start
use restart after update
OR ##
service mysql start ## use restart after update
chkconfig --levels 235 mysqld on
4. 獲取初始的隨機密碼
grep 'A temporary password is generated for root@localhost' /var/log/mysqld.log |tail -1
Example Output:
2018-11-20T21:11:44.229891Z 1 [Note] A temporary password is generated for root@localhost: -et)QoL4MLid
And root password is: -et)QoL4MLid
5.重置密碼
alter user root@localhost identified by '自定義密碼';
新密碼必須大小學數(shù)字特殊符號全部具備。
6. 連接本地mysql服務器
mysql -u root -p OR ## mysql -h localhost -u root -p
文章名稱:Fedoraserver安裝Mysql8具體方法
本文地址:http://m.fisionsoft.com.cn/article/coiocpe.html


咨詢
建站咨詢
