中文字幕日韩精品一区二区免费_精品一区二区三区国产精品无卡在_国精品无码专区一区二区三区_国产αv三级中文在线

Linux平臺用RPM包方式安裝Mysql5.7

這篇文章主要講解了“Linux平臺用RPM包方式安裝MySQL 5.7”,文中的講解內(nèi)容簡單清晰,易于學(xué)習(xí)與理解,下面請大家跟著小編的思路慢慢深入,一起來研究和學(xué)習(xí)“Linux平臺用RPM包方式安裝Mysql 5.7”吧!

創(chuàng)新互聯(lián)專業(yè)為企業(yè)提供昌邑網(wǎng)站建設(shè)、昌邑做網(wǎng)站、昌邑網(wǎng)站設(shè)計、昌邑網(wǎng)站制作等企業(yè)網(wǎng)站建設(shè)、網(wǎng)頁設(shè)計與制作、昌邑企業(yè)網(wǎng)站模板建站服務(wù),10年昌邑做網(wǎng)站經(jīng)驗,不只是建網(wǎng)站,更提供有價值的思路和整體網(wǎng)絡(luò)服務(wù)。

在 Mysql 官網(wǎng)下載 RPM 的 bundle 包并解壓。

[root@localhost mysql5.7]# tar xvf mysql-5.7.12-1.el6.x86_64.rpm-bundle.tar

單獨安裝 Server 包,報依賴關(guān)系的錯誤。

[root@T400-kelong software]# rpm -ivh mysql-community-server-5.7.10-1.el6.x86_64.rpm 
warning: mysql-community-server-5.7.10-1.el6.x86_64.rpm: Header V3 DSA/SHA1 Signature, key ID 5072e1f5: NOKEY
error: Failed dependencies:
mysql-community-client(x86-64) = 5.7.10-1.el6 is needed by mysql-community-server-5.7.10-1.el6.x86_64
mysql-community-common(x86-64) = 5.7.10-1.el6 is needed by mysql-community-server-5.7.10-1.el6.x86_64

將所需的包添加上,依然報錯,缺少另外一個包。

[root@T400-kelong software]# rpm -ivh mysql-community-server-5.7.10-1.el6.x86_64.rpm mysql-community-common-5.7.10-1.el6.x86_64.rpm mysql-community-client-5.7.10-1.el6.x86_64.rpm 
warning: mysql-community-server-5.7.10-1.el6.x86_64.rpm: Header V3 DSA/SHA1 Signature, key ID 5072e1f5: NOKEY
error: Failed dependencies:
mysql-community-libs(x86-64) = 5.7.10-1.el6 is needed by mysql-community-client-5.7.10-1.el6.x86_64

將所需的包添加上,繼續(xù)報錯,和系統(tǒng)自帶的 5.1 版本沖突。

[root@T400-kelong software]# rpm -ivh mysql-community-server-5.7.10-1.el6.x86_64.rpm mysql-community-common-5.7.10-1.el6.x86_64.rpm mysql-community-client-5.7.10-1.el6.x86_64.rpm mysql-community-libs-5.7.10-1.el6.x86_64.rpm 
warning: mysql-community-server-5.7.10-1.el6.x86_64.rpm: Header V3 DSA/SHA1 Signature, key ID 5072e1f5: NOKEY
Preparing...                ########################################### [100%]
file /usr/share/mysql/czech/errmsg.sys from install of mysql-community-common-5.7.10-1.el6.x86_64 conflicts with file from package mysql-libs-5.1.73-5.el6_6.x86_64
file /usr/share/mysql/danish/errmsg.sys from install of mysql-community-common-5.7.10-1.el6.x86_64 conflicts with file from package mysql-libs-5.1.73-5.el6_6.x86_64

卸載掉報錯的mysql 5.1安裝包

[root@T400-kelong software]# yum remove mysql-libs-5.1.73-5.el6_6.x86_64
Loaded plugins: fastestmirror, refresh-packagekit, security
Setting up Remove Process
Resolving Dependencies
There are unfinished transactions remaining. You might consider running yum-complete-transaction first to finish them.
--> Running transaction check
---> Package mysql-libs.x86_64 0:5.1.73-5.el6_6 will be erased
--> Processing Dependency: libmysqlclient.so.16()(64bit) for package: perl-DBD-MySQL-4.013-3.el6.x86_64
--> Processing Dependency: libmysqlclient.so.16(libmysqlclient_16)(64bit) for package: perl-DBD-MySQL-4.013-3.el6.x86_64
--> Running transaction check
---> Package perl-DBD-MySQL.x86_64 0:4.013-3.el6 will be erased
--> Finished Dependency Resolution

Dependencies Resolved

=============================================================================================================================================================
 Package                                  Arch                             Version                                     Repository                       Size
=============================================================================================================================================================
Removing:
 mysql-libs                               x86_64                           5.1.73-5.el6_6                              @base                           4.0 M
Removing for dependencies:
 perl-DBD-MySQL                           x86_64                           4.013-3.el6                                 @base                           338 k

Transaction Summary
=============================================================================================================================================================
Remove        2 Package(s)

Installed size: 4.4 M
Is this ok [y/N]: y

安裝 RPM 包

[root@T400-kelong software]# rpm -ivh mysql-community-server-5.7.10-1.el6.x86_64.rpm mysql-community-common-5.7.10-1.el6.x86_64.rpm mysql-community-client-5.7.10-1.el6.x86_64.rpm mysql-community-libs-5.7.10-1.el6.x86_64.rpm 
warning: mysql-community-server-5.7.10-1.el6.x86_64.rpm: Header V3 DSA/SHA1 Signature, key ID 5072e1f5: NOKEY
Preparing...                ########################################### [100%]
   1:mysql-community-common ########################################### [ 25%]
   2:mysql-community-libs   ########################################### [ 50%]
   3:mysql-community-client ########################################### [ 75%]
   4:mysql-community-server ########################################### [100%]

啟動數(shù)據(jù)庫。

[root@T400-kelong sbin]# service mysqld start
初始化 MySQL 數(shù)據(jù)庫:                                      [確定]
正在啟動 mysqld:                                          [確定]
[root@T400-kelong sbin]# service mysqld status
mysqld (pid  4782) 正在運行...

[root@T400-kelong sbin]# ps -ef|grep mysql
root      4586     1  0 21:11 pts/1    00:00:00 /bin/sh /usr/bin/mysqld_safe --datadir=/var/lib/mysql --socket=/var/lib/mysql/mysql.sock --pid-file=/var/run/mysqld/mysqld.pid --basedir=/usr --user=mysql
mysql     4782  4586  2 21:11 pts/1    00:00:00 /usr/sbin/mysqld --basedir=/usr --datadir=/var/lib/mysql --plugin-dir=/usr/lib64/mysql/plugin --user=mysql --log-error=/var/log/mysqld.log --pid-file=/var/run/mysqld/mysqld.pid --socket=/var/lib/mysql/mysql.sock
root      4847  3857  0 21:11 pts/1    00:00:00 grep mysql


使用臨時密碼登錄到 ROOT 用戶,更改 ROOT 密碼。

grep 'temporary password' /var/log/mysql/mysqld.log

[root@T400-kelong sbin]# mysql -uroot -p
Enter password: 
Welcome to the MySQL monitor.  Commands end with ; or \g.
Your MySQL connection id is 4
Server version: 5.7.10

Copyright (c) 2000, 2015, 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> alter user 'root'@'localhost' identified by 'System#2013';
Query OK, 0 rows affected (0.00 sec)

感謝各位的閱讀,以上就是“Linux平臺用RPM包方式安裝Mysql 5.7”的內(nèi)容了,經(jīng)過本文的學(xué)習(xí)后,相信大家對Linux平臺用RPM包方式安裝Mysql 5.7這一問題有了更深刻的體會,具體使用情況還需要大家實踐驗證。這里是創(chuàng)新互聯(lián),小編將為大家推送更多相關(guān)知識點的文章,歡迎關(guān)注!

網(wǎng)站欄目:Linux平臺用RPM包方式安裝Mysql5.7
當(dāng)前網(wǎng)址:http://www.rwnh.cn/article30/jgpjpo.html

成都網(wǎng)站建設(shè)公司_創(chuàng)新互聯(lián),為您提供網(wǎng)站設(shè)計公司、自適應(yīng)網(wǎng)站、App開發(fā)、域名注冊、網(wǎng)站排名、面包屑導(dǎo)航

廣告

聲明:本網(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)

搜索引擎優(yōu)化
星子县| 唐山市| 洪湖市| 崇文区| 宜阳县| 湖南省| 保靖县| 博客| 鸡西市| 平安县| 革吉县| 互助| 渭源县| 夏津县| 华坪县| 合肥市| 榆树市| 虞城县| 双牌县| 潞城市| 惠水县| 辽源市| 呼伦贝尔市| 中山市| 蕲春县| 曲沃县| 云阳县| 贵定县| 荣成市| 南投县| 凉山| 武夷山市| 张家港市| 乐清市| 阿图什市| 大洼县| 玉山县| 西吉县| 宁安市| 伊宁市| 萝北县|