下面講講關(guān)于RedHat 7.2上通過RPM包安裝MySQL 5.7.20的詳細(xì)步驟,文字的奧妙在于貼近主題相關(guān)。所以,閑話就不談了,我們直接看下文吧,相信看完RedHat 7.2上通過RPM包安裝MySQL 5.7.20的詳細(xì)步驟這篇文章你一定會有所受益。
專注于為中小企業(yè)提供網(wǎng)站建設(shè)、成都做網(wǎng)站服務(wù),電腦端+手機(jī)端+微信端的三站合一,更高效的管理,為中小企業(yè)保山免費(fèi)做網(wǎng)站提供優(yōu)質(zhì)的服務(wù)。我們立足成都,凝聚了一批互聯(lián)網(wǎng)行業(yè)人才,有力地推動了近1000家企業(yè)的穩(wěn)健成長,幫助中小企業(yè)通過網(wǎng)站建設(shè)實(shí)現(xiàn)規(guī)模擴(kuò)充和轉(zhuǎn)變。一、安裝環(huán)境
1、操作系統(tǒng)版本:Red Hat Enterprise Linux Server release 7.2 (Maipo)
2、Mysql版本:mysql-5.7.20-1.el7.x86_64.rpm-bundle.tar
二、安裝說明
1、官網(wǎng)上關(guān)于mysql 5.7的各個rpm包的說明如下:
2、官網(wǎng)上關(guān)于mysql5.7用rpm包安裝的各個路徑說明如下:
3、官網(wǎng)上關(guān)于標(biāo)準(zhǔn)安裝需要安裝哪些rpm包的說明如下:
4、官網(wǎng)上關(guān)于安裝后初始化的說明:使用rpm包安裝后會在第一次啟動服務(wù)時自動完成初始化,無需再手動執(zhí)行初始化操作
三、安裝過程
1、解壓mysql-5.7.20-1.el7.x86_64.rpm-bundle.tar
2、卸載掉系統(tǒng)中的mariadb-libs
3、按照下圖順序依次安裝各個rpm包,各個rpm包之間有依賴關(guān)系,最后安裝mysql-community-server-5.7.20-1.el7.x86_64.rpm時報缺少相關(guān)依賴包,使用yum裝上,再安裝就沒問題了
4、查看mysql的相關(guān)目錄,是空的
5、安裝完后mysql服務(wù)已經(jīng)enable,但是沒有啟動,啟動它
6、啟動mysql服務(wù)后,日志如下:其中記錄了隨機(jī)生成的初始root密碼“A temporary password is generated for root@localhost: urq2&OKwZd,t”
2018-04-18T10:31:46.894089Z 0 [Warning] TIMESTAMP with implicit DEFAULT value is deprecated. Please use --explicit_defaults_for_timestamp server option (see documentation for more details). 2018-04-18T10:31:50.089964Z 0 [Warning] InnoDB: New log files created, LSN=45790 2018-04-18T10:31:50.319434Z 0 [Warning] InnoDB: Creating foreign key constraint system tables. 2018-04-18T10:31:50.380647Z 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: b44683a6-42f3-11e8-8b54-000c29ffe62f. 2018-04-18T10:31:50.382406Z 0 [Warning] Gtid table is not ready to be used. Table 'mysql.gtid_executed' cannot be opened. 2018-04-18T10:31:50.383390Z 1 [Note] A temporary password is generated for root@localhost: urq2&OKwZd,t 2018-04-18T10:31:54.678495Z 0 [Warning] TIMESTAMP with implicit DEFAULT value is deprecated. Please use --explicit_defaults_for_timestamp server option (see documentation for more details). 2018-04-18T10:31:54.679697Z 0 [Note] /usr/sbin/mysqld (mysqld 5.7.20) starting as process 2954 ... 2018-04-18T10:31:54.685450Z 0 [Note] InnoDB: PUNCH HOLE support available 2018-04-18T10:31:54.685476Z 0 [Note] InnoDB: Mutexes and rw_locks use GCC atomic builtins 2018-04-18T10:31:54.685479Z 0 [Note] InnoDB: Uses event mutexes 2018-04-18T10:31:54.685481Z 0 [Note] InnoDB: GCC builtin __atomic_thread_fence() is used for memory barrier 2018-04-18T10:31:54.685483Z 0 [Note] InnoDB: Compressed tables use zlib 1.2.3 2018-04-18T10:31:54.685486Z 0 [Note] InnoDB: Using Linux native AIO 2018-04-18T10:31:54.685708Z 0 [Note] InnoDB: Number of pools: 1 2018-04-18T10:31:54.685812Z 0 [Note] InnoDB: Using CPU crc32 instructions 2018-04-18T10:31:54.739376Z 0 [Note] InnoDB: Initializing buffer pool, total size = 128M, instances = 1, chunk size = 128M 2018-04-18T10:31:54.753795Z 0 [Note] InnoDB: Completed initialization of buffer pool 2018-04-18T10:31:54.758522Z 0 [Note] InnoDB: If the mysqld execution user is authorized, page cleaner thread priority can be changed. See the man page of setpriority(). 2018-04-18T10:31:54.772576Z 0 [Note] InnoDB: Highest supported file format is Barracuda. 2018-04-18T10:31:54.793537Z 0 [Note] InnoDB: Creating shared tablespace for temporary tables 2018-04-18T10:31:54.793646Z 0 [Note] InnoDB: Setting file './ibtmp1' size to 12 MB. Physically writing the file full; Please wait ... 2018-04-18T10:31:54.952587Z 0 [Note] InnoDB: File './ibtmp1' size is now 12 MB. 2018-04-18T10:31:54.955544Z 0 [Note] InnoDB: 96 redo rollback segment(s) found. 96 redo rollback segment(s) are active. 2018-04-18T10:31:54.955610Z 0 [Note] InnoDB: 32 non-redo rollback segment(s) are active. 2018-04-18T10:31:54.957052Z 0 [Note] InnoDB: Waiting for purge to start 2018-04-18T10:31:55.007837Z 0 [Note] InnoDB: 5.7.20 started; log sequence number 2565523 2018-04-18T10:31:55.009136Z 0 [Note] Plugin 'FEDERATED' is disabled. 2018-04-18T10:31:55.018932Z 0 [Note] InnoDB: Loading buffer pool(s) from /var/lib/mysql/ib_buffer_pool 2018-04-18T10:31:55.027051Z 0 [Note] InnoDB: Buffer pool(s) load completed at 180418 18:31:55 2018-04-18T10:31:55.036775Z 0 [Note] Found ca.pem, server-cert.pem and server-key.pem in data directory. Trying to enable SSL support using them. 2018-04-18T10:31:55.037779Z 0 [Warning] CA certificate ca.pem is self signed. 2018-04-18T10:31:55.092734Z 0 [Note] Server hostname (bind-address): '*'; port: 3306 2018-04-18T10:31:55.092981Z 0 [Note] IPv6 is available. 2018-04-18T10:31:55.093007Z 0 [Note] - '::' resolves to '::'; 2018-04-18T10:31:55.093031Z 0 [Note] Server socket created on IP: '::'. 2018-04-18T10:31:55.107483Z 0 [Note] Event Scheduler: Loaded 0 events 2018-04-18T10:31:55.108147Z 0 [Note] /usr/sbin/mysqld: ready for connections. Version: '5.7.20' socket: '/var/lib/mysql/mysql.sock' port: 3306 MySQL Community Server (GPL) 2018-04-18T10:31:55.108170Z 0 [Note] Executing 'SELECT * FROM INFORMATION_SCHEMA.TABLES;' to get a list of tables using the deprecated partition engine. You may use the startup option '--disable-partition-engine-check' to skip this check. 2018-04-18T10:31:55.108186Z 0 [Note] Beginning of list of non-natively partitioned tables 2018-04-18T10:31:55.124516Z 0 [Note] End of list of non-natively partitioned tables
7、此時再查看mysql的目錄,相關(guān)文件已經(jīng)自動生成
8、使用日志中記錄的初始密碼登錄,并修改root密碼
9、使用新密碼成功登錄,安裝完畢
對于以上RedHat 7.2上通過RPM包安裝MySQL 5.7.20的詳細(xì)步驟相關(guān)內(nèi)容,大家還有什么不明白的地方嗎?或者想要了解更多相關(guān),可以繼續(xù)關(guān)注我們的行業(yè)資訊板塊。
另外有需要云服務(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ù)可用性高、性價比高”等特點(diǎn)與優(yōu)勢,專為企業(yè)上云打造定制,能夠滿足用戶豐富、多元化的應(yīng)用場景需求。
網(wǎng)站標(biāo)題:RedHat7.2上通過RPM包安裝MySQL5.7.20的詳細(xì)步驟-創(chuàng)新互聯(lián)
當(dāng)前地址:http://aaarwkj.com/article22/dgocjc.html
成都網(wǎng)站建設(shè)公司_創(chuàng)新互聯(lián),為您提供網(wǎng)站改版、關(guān)鍵詞優(yōu)化、用戶體驗(yàn)、移動網(wǎng)站建設(shè)、企業(yè)建站、響應(yīng)式網(wǎng)站
聲明:本網(wǎng)站發(fā)布的內(nèi)容(圖片、視頻和文字)以用戶投稿、用戶轉(zhuǎn)載內(nèi)容為主,如果涉及侵權(quán)請盡快告知,我們將會在第一時間刪除。文章觀點(diǎn)不代表本網(wǎng)站立場,如需處理請聯(lián)系客服。電話:028-86922220;郵箱:631063699@qq.com。內(nèi)容未經(jīng)允許不得轉(zhuǎn)載,或轉(zhuǎn)載時需注明來源: 創(chuàng)新互聯(lián)
猜你還喜歡下面的內(nèi)容