欧美一级特黄大片做受成人-亚洲成人一区二区电影-激情熟女一区二区三区-日韩专区欧美专区国产专区

CentOS7.4下MySQL5.7.28的RPM方式安裝-創(chuàng)新互聯(lián)

Linux系統(tǒng)版本:CentOS7.4
MySQL版本:5.7.28
在Linux平臺有RPM包、二進(jìn)制包、源碼包3中安裝方式,這一篇文章主要是以RPM包為例來介紹如何在Linux平臺下進(jìn)行MySQL的安裝。
下載地址:
https://cdn.mysql.com//Downloads/MySQL-5.7/mysql-5.7.28-1.el7.x86_64.rpm-bundle.tar
CentOS7.4下MySQL5.7.28的RPM方式安裝

察哈爾右翼中旗ssl適用于網(wǎng)站、小程序/APP、API接口等需要進(jìn)行數(shù)據(jù)傳輸應(yīng)用場景,ssl證書未來市場廣闊!成為成都創(chuàng)新互聯(lián)的ssl證書銷售渠道,可以享受市場價格4-6折優(yōu)惠!如果有意向歡迎電話聯(lián)系或者加微信:18980820575(備注:SSL證書合作)期待與您的合作!

安裝RPM包的具體操作步驟如下:
(1)首先卸載mariadb,不然后面會和安裝mysql需要的庫沖突:

[root@localhost ~]# rpm -qa | grep mariadb
mariadb-libs-5.5.56-2.el7.x86_64
[root@localhost ~]# rpm -e --nodeps mariadb-libs-5.5.56-2.el7.x86_64

(2)切換到root下(只有root才可以執(zhí)行RPM包):

[sunan@localhost ~]$ su - root
Password:
Last login: Mon Oct 28 20:12:16 CST 2019 from 192.168.1.19 on pts/0

(3)解壓縮安裝包:

[root@localhost opt]# tar -xvf mysql-5.7.28-1.el7.x86_64.rpm-bundle.tar
mysql-community-embedded-5.7.28-1.el7.x86_64.rpm
mysql-community-libs-compat-5.7.28-1.el7.x86_64.rpm
mysql-community-devel-5.7.28-1.el7.x86_64.rpm
mysql-community-embedded-compat-5.7.28-1.el7.x86_64.rpm
mysql-community-libs-5.7.28-1.el7.x86_64.rpm
mysql-community-test-5.7.28-1.el7.x86_64.rpm
mysql-community-common-5.7.28-1.el7.x86_64.rpm
mysql-community-embedded-devel-5.7.28-1.el7.x86_64.rpm
mysql-community-client-5.7.28-1.el7.x86_64.rpm
mysql-community-server-5.7.28-1.el7.x86_64.rpm

(4)安裝解壓縮的包,這些包不需要全部安裝,但要注意安裝順序,有相互依賴:

[root@localhost opt]# rpm -ivh mysql-community-common-5.7.28-1.el7.x86_64.rpm
warning: mysql-community-common-5.7.28-1.el7.x86_64.rpm: Header V3 DSA/SHA1 Signature, key ID 5072e1f5: NOKEY
Preparing...                          ################################# [100%]
Updating / installing...
   1:mysql-community-common-5.7.28-1.e################################# [100%]

[root@localhost opt]# rpm -ivh mysql-community-libs-5.7.28-1.el7.x86_64.rpm
warning: mysql-community-libs-5.7.28-1.el7.x86_64.rpm: Header V3 DSA/SHA1 Signature, key ID 5072e1f5: NOKEY
Preparing...                          ################################# [100%]
Updating / installing...
   1:mysql-community-libs-5.7.28-1.el7################################# [100%]

[root@localhost opt]# rpm -ivh mysql-community-libs-compat-5.7.28-1.el7.x86_64.rpm
warning: mysql-community-libs-compat-5.7.28-1.el7.x86_64.rpm: Header V3 DSA/SHA1 Signature, key ID 5072e1f5: NOKEY
Preparing...                          ################################# [100%]
Updating / installing...
   1:mysql-community-libs-compat-5.7.2################################# [100%]

[root@localhost opt]# rpm -ivh mysql-community-client-5.7.28-1.el7.x86_64.rpm
warning: mysql-community-client-5.7.28-1.el7.x86_64.rpm: Header V3 DSA/SHA1 Signature, key ID 5072e1f5: NOKEY
Preparing...                          ################################# [100%]
Updating / installing...
   1:mysql-community-client-5.7.28-1.e################################# [100%]

[root@localhost opt]# rpm -ivh mysql-community-server-5.7.28-1.el7.x86_64.rpm
warning: mysql-community-server-5.7.28-1.el7.x86_64.rpm: Header V3 DSA/SHA1 Signature, key ID 5072e1f5: NOKEY
Preparing...                          ################################# [100%]
Updating / installing...
   1:mysql-community-server-5.7.28-1.e################################# [100%]

[root@localhost opt]# rpm -ivh mysql-community-devel-5.7.28-1.el7.x86_64.rpm
warning: mysql-community-devel-5.7.28-1.el7.x86_64.rpm: Header V3 DSA/SHA1 Signature, key ID 5072e1f5: NOKEY
Preparing...                          ################################# [100%]
Updating / installing...
   1:mysql-community-devel-5.7.28-1.el################################# [100%]

(5)安裝完成,數(shù)據(jù)庫初始化:

[root@localhost ~]# mysqld --initialize --user=mysql

(6)初始化完成,生成一個臨時的數(shù)據(jù)庫root密碼:

[root@localhost ~]# cat /var/log/mysqld.log
2019-10-28T13:59:16.673149Z 0 [Warning] TIMESTAMP with implicit DEFAULT value is deprecated. Please use --explicit_defaults_for_timestamp server option (see documentation for more details).
2019-10-28T13:59:17.569975Z 0 [Warning] InnoDB: New log files created, LSN=45790
2019-10-28T13:59:17.639527Z 0 [Warning] InnoDB: Creating foreign key constraint system tables.
2019-10-28T13:59:17.701489Z 0 [Warning] No existing UUID has been found, so we assume that this is the first time that this server has been started. Generating a new UUID: 21f571cf-f98b-11e9-add4-000c29eb2c51.
2019-10-28T13:59:17.705734Z 0 [Warning] Gtid table is not ready to be used. Table 'mysql.gtid_executed' cannot be opened.
2019-10-28T13:59:18.493027Z 0 [Warning] CA certificate ca.pem is self signed.
2019-10-28T13:59:18.708430Z 1 [Note] A temporary password is generated for root@localhost: )DrGVQo+s6-s

(7)啟動MySQL:

[root@localhost ~]# systemctl start mysqld.service
[root@localhost ~]# systemctl status mysqld.service
● mysqld.service - MySQL Server
   Loaded: loaded (/usr/lib/systemd/system/mysqld.service; enabled; vendor preset: disabled)
   Active: active (running) since Mon 2019-10-28 22:05:55 CST; 24s ago
     Docs: man:mysqld(8)
           http://dev.mysql.com/doc/refman/en/using-systemd.html
  Process: 1599 ExecStart=/usr/sbin/mysqld --daemonize --pid-file=/var/run/mysqld/mysqld.pid $MYSQLD_OPTS (code=exited, status=0/SUCCESS)
  Process: 1582 ExecStartPre=/usr/bin/mysqld_pre_systemd (code=exited, status=0/SUCCESS)
 Main PID: 1603 (mysqld)
   CGroup: /system.slice/mysqld.service
           └─1603 /usr/sbin/mysqld --daemonize --pid-file=/var/run/mysqld/mysqld.pid

Oct 28 22:05:55 localhost.localdomain systemd[1]: Starting MySQL Server...
Oct 28 22:05:55 localhost.localdomain systemd[1]: Started MySQL Server.

(8)登錄MySQL數(shù)據(jù)庫,并設(shè)置新的密碼:


[root@localhost ~]# mysql -uroot -p
Enter password:
Welcome to the MySQL monitor.  Commands end with ; or \g.
Your MySQL connection id is 3
Server version: 5.7.28

Copyright (c) 2000, 2019, Oracle and/or its affiliates. All rights reserved.

Oracle is a registered trademark of Oracle Corporation and/or its
affiliates. Other names may be trademarks of their respective
owners.

Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.

mysql> set password = password('輸入新的密碼');
Query OK, 0 rows affected, 1 warning (0.00 sec)

另外有需要云服務(wù)器可以了解下創(chuàng)新互聯(lián)cdcxhl.cn,海內(nèi)外云服務(wù)器15元起步,三天無理由+7*72小時售后在線,公司持有idc許可證,提供“云服務(wù)器、裸金屬服務(wù)器、高防服務(wù)器、香港服務(wù)器、美國服務(wù)器、虛擬主機(jī)、免備案服務(wù)器”等云主機(jī)租用服務(wù)以及企業(yè)上云的綜合解決方案,具有“安全穩(wěn)定、簡單易用、服務(wù)可用性高、性價比高”等特點與優(yōu)勢,專為企業(yè)上云打造定制,能夠滿足用戶豐富、多元化的應(yīng)用場景需求。

網(wǎng)站題目:CentOS7.4下MySQL5.7.28的RPM方式安裝-創(chuàng)新互聯(lián)
本文URL:http://aaarwkj.com/article4/cchgie.html

成都網(wǎng)站建設(shè)公司_創(chuàng)新互聯(lián),為您提供搜索引擎優(yōu)化、面包屑導(dǎo)航、全網(wǎng)營銷推廣品牌網(wǎng)站設(shè)計、網(wǎng)站維護(hù)、建站公司

廣告

聲明:本網(wǎng)站發(fā)布的內(nèi)容(圖片、視頻和文字)以用戶投稿、用戶轉(zhuǎn)載內(nèi)容為主,如果涉及侵權(quán)請盡快告知,我們將會在第一時間刪除。文章觀點不代表本網(wǎng)站立場,如需處理請聯(lián)系客服。電話:028-86922220;郵箱:631063699@qq.com。內(nèi)容未經(jīng)允許不得轉(zhuǎn)載,或轉(zhuǎn)載時需注明來源: 創(chuàng)新互聯(lián)

營銷型網(wǎng)站建設(shè)
最新日韩中文字幕在线播放| 国产91九色视频在线| 亚洲av网站一区二区三区| 九九re久久这里有精品| 亚洲麻豆精品午夜免费| 人妻在线中文字幕一区| 亚洲av乱码乱码精品| 天天干天天干夜夜操| 国产亚洲欧美精品久久久久久| 国产精品兄妹在线观看91| 欧美丰满熟妇视频在线| 日本中文字幕一区二区视频| 亚洲中文字幕一二区日韩 | 日韩美少妇大胆一区二区| 日本一区二区三区高清不卡| 亚洲av污精品一区二区三区| 亚洲 精品一区二区| 国产姐弟操大率悠荡笕| 91九色最新国产在线| 天美传媒剧国产在线观看| 日韩精品一区二区毛片| 久久国内午夜福利直播| 日本加勒比系列在线视频| 日韩人妻中出中文字幕| 日本不卡免费一区二区视频| 蜜臀av在线播放黑丝| 国产精品十八禁在线看| 小黄片免费在线播放观看| 国产精品亚洲一区二区在| 少妇高潮一区二区三区在线| 99国产综合精品女| 熟女俱乐部五十路六十路| 18禁的视频在线观看| 日韩亚洲毛片全在线播放| 精品成人18亚洲av播放| 国产精品传媒免费在线观看| 精品国产一区二区三区卡| 亚洲一区二区三区久久伊人| 毛茸茸的阴户在线观看| 2020年最新国产三级网站| 欧美亚洲精品二区久久久|