真实的国产乱ⅩXXX66竹夫人,五月香六月婷婷激情综合,亚洲日本VA一区二区三区,亚洲精品一区二区三区麻豆

成都創(chuàng)新互聯(lián)網(wǎng)站制作重慶分公司

Centos6.9安裝Myql數(shù)據(jù)庫RPM包-創(chuàng)新互聯(lián)

Centos6.9安裝Myql數(shù)據(jù)庫RPM包

1、進入/usr/src目錄

[root@ljctest nginx-1.12.1]# cd /usr/src/

創(chuàng)新互聯(lián)是一家專業(yè)提供德陽企業(yè)網(wǎng)站建設,專注與網(wǎng)站建設、成都網(wǎng)站建設、H5頁面制作、小程序制作等業(yè)務。10年已為德陽眾多企業(yè)、政府機構等服務。創(chuàng)新互聯(lián)專業(yè)的建站公司優(yōu)惠進行中。

[root@ljctest src]# ls

debug kernels nginx-1.12.1 nginx-1.12.1.tar.gz

2、下載Myql5.7.19的rpm包

[root@ljctest****src]#wget https://cdn.mysql.com//Downloads/MySQL-5.7/mysql-5.7.19-1.el6.x86_64.rpm-bundle.tar

--2017-10-12 11:16:50-- https://cdn.mysql.com//Downloads/MySQL-5.7/mysql-5.7.19-1.el6.x86_64.rpm-bundle.tar

Resolving cdn.mysql.com… 104.95.206.140

Connecting to cdn.mysql.com|104.95.206.140|:443… connected.

HTTP request sent, awaiting response… 200 OK

Length: 472432640 (451M) [application/x-tar]

Saving to: “mysql-5.7.19-1.el6.x86_64.rpm-bundle.tar”

100%[===========================================================================================

2017-10-12 11:20:48 (1.90 MB/s) - “mysql-5.7.19-1.el6.x86_64.rpm-bundle.tar” saved [472432640/47

3、查看文件!

[root@ljctest src]# file mysql-5.7.19-1.el6.x86_64.rpm-bundle.tar

mysql-5.7.19-1.el6.x86_64.rpm-bundle.tar: POSIX tar archive (GNU)

4、創(chuàng)建mysql-5.7的目錄

[root@ljctest src]# mkdir mysql-5.7

5、解壓RPM包到mysql-5.7文件夾中

[root@ljctest src]# tar -xf mysql-5.7.19-1.el6.x86_64.rpm-bundle.tar -C mysql-5.7/

6、****檢查操作系統(tǒng)上是否安裝了MySQL

[root@mydb1 backup]# rpm -qa |grep mysql 
qt-mysql-4.6.2-26.el6_4.x86_64 
mysql-5.1.71-1.el6.x86_64 
mysql-server-5.1.71-1.el6.x86_64 
mysql-devel-5.1.71-1.el6.x86_64 
mysql-libs-5.1.71-1.el6.x86_64

刪除MyQL(RedHat6.3服務器自帶的mysql-libs是mysql-libs-5.1.61-4.el6.x86_64,可能會和高版本的mysql-libs有沖突)

yum remove mysql-libs

7、單獨安裝報錯(一般都是依賴安裝的有問題)!

[root@ljctest mysql-5.7]# rpm -ivh mysql-community-server-5.7.19-1.el6.x86_64.rpm

warning: mysql-community-server-5.7.19-1.el6.x86_64.rpm: Header V3 DSA/SHA1 Signature, key ID 5072e1f5: NOKEY

error: Failed dependencies:

libnuma.so.1()(64bit) is needed by mysql-community-server-5.7.19-1.el6.x86_64

libnuma.so.1(libnuma_1.1)(64bit) is needed by mysql-community-server-5.7.19-1.el6.x86_64

libnuma.so.1(libnuma_1.2)(64bit) is needed by mysql-community-server-5.7.19-1.el6.x86_64

mysql-community-client(x86-64) >= 5.7.9 is needed by mysql-community-server-5.7.19-1.el6.x86_64

mysql-community-common(x86-64) = 5.7.19-1.el6 is needed by mysql-community-server-5.7.19-1.el6.x86_64

[root@ljctest mysql-5.7]# ll

total 461372

-rw-r--r-- 1 7155 31415 23618024 Jun 24 20:08 mysql-community-client-5.7.19-1.el6.x86_64.rpm

-rw-r--r-- 1 7155 31415 336268 Jun 24 20:08 mysql-community-common-5.7.19-1.el6.x86_64.rpm

-rw-r--r-- 1 7155 31415 3747580 Jun 24 20:08 mysql-community-devel-5.7.19-1.el6.x86_64.rpm

-rw-r--r-- 1 7155 31415 39248236 Jun 24 20:08 mysql-community-embedded-5.7.19-1.el6.x86_64.rpm

-rw-r--r-- 1 7155 31415 136599912 Jun 24 20:08 mysql-community-embedded-devel-5.7.19-1.el6.x86_64.rpm

-rw-r--r-- 1 7155 31415 2177644 Jun 24 20:09 mysql-community-libs-5.7.19-1.el6.x86_64.rpm

-rw-r--r-- 1 7155 31415 1723316 Jun 24 20:09 mysql-community-libs-compat-5.7.19-1.el6.x86_64.rpm

-rw-r--r-- 1 7155 31415 159680896 Jun 24 20:09 mysql-community-server-5.7.19-1.el6.x86_64.rpm

-rw-r--r-- 1 7155 31415 105292128 Jun 24 20:09 mysql-community-test-5.7.19-1.el6.x86_64.rpm

8、有網(wǎng)絡的情況,用如下的安裝方式安裝,安裝成功。

[root@ljctest mysql-5.7]# yum install ./*.rpm

9、啟動mysql

[root@ljctest mysql-5.7]# service mysqld start

Initializing MySQL database: [ OK ]

Starting mysqld: [ OK ]

[root@ljctest mysql-5.7]#

[root@ljctest mysql-5.7]# grep 'temporary password' /var/log/mysqld.log

2017-10-12T07:20:33.419494Z 1 [Note] A temporary password is generated for root@localhost: ?OJo0_Wrpv70

[root@ljctest mysql-5.7]#

10、進入mysql ,修改mysql的密碼。

[root@ljctest mysql-5.7]# mysql -uroot -p

Enter password:

Welcome to the MySQL monitor. Commands end with ; or \g.

Your MySQL connection id is 5

Server version: 5.7.19

Copyright (c) 2000, 2017, 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 '新密碼';

Centos6.9安裝Myql數(shù)據(jù)庫RPM包

以上,MySQL 5.7.10安裝完成。

之后還可以放開防火墻、設定自啟動、增強MySQL安全設置等。

iptables -I INPUT -p tcp -m state --state NEW -m tcp --dport 3306 -j ACCEPT

/etc/init.d/iptables save

chkconfig mysqld on

mysql_secure_installation

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


網(wǎng)站標題:Centos6.9安裝Myql數(shù)據(jù)庫RPM包-創(chuàng)新互聯(lián)
URL分享:http://weahome.cn/article/ccjocj.html

其他資訊

在線咨詢

微信咨詢

電話咨詢

028-86922220(工作日)

18980820575(7×24)

提交需求

返回頂部