centos6.9-mysql5.7.24-install

Posted code158

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了centos6.9-mysql5.7.24-install相关的知识,希望对你有一定的参考价值。

 

# step1 下载 mysql

```sh
[[email protected] ~]# wget http://dev.mysql.com/get/Downloads/MySQL-5.7/mysql-5.7.24-1.el6.x86_64.rpm-bundle.tar
--2018-12-07 16:52:04-- http://dev.mysql.com/get/Downloads/MySQL-5.7/mysql-5.7.24-1.el6.x86_64.rpm-bundle.tar
正在解析主机 dev.mysql.com... 137.254.60.11
正在连接 dev.mysql.com|137.254.60.11|:80... 已连接。
已发出 HTTP 请求,正在等待回应... 301 Moved Permanently
位置:https://dev.mysql.com/get/Downloads/MySQL-5.7/mysql-5.7.24-1.el6.x86_64.rpm-bundle.tar [跟随至新的 URL]
--2018-12-07 16:52:05-- https://dev.mysql.com/get/Downloads/MySQL-5.7/mysql-5.7.24-1.el6.x86_64.rpm-bundle.tar
正在连接 dev.mysql.com|137.254.60.11|:443... 已连接。
已发出 HTTP 请求,正在等待回应... 302 Found
位置:https://cdn.mysql.com//Downloads/MySQL-5.7/mysql-5.7.24-1.el6.x86_64.rpm-bundle.tar [跟随至新的 URL]
--2018-12-07 16:52:07-- https://cdn.mysql.com//Downloads/MySQL-5.7/mysql-5.7.24-1.el6.x86_64.rpm-bundle.tar
正在解析主机 cdn.mysql.com... 23.13.185.161
正在连接 cdn.mysql.com|23.13.185.161|:443... 已连接。
已发出 HTTP 请求,正在等待回应... 200 OK
长度:475740160 (454M) [application/x-tar]
正在保存至: “mysql-5.7.24-1.el6.x86_64.rpm-bundle.tar”

9% [==========> ] 45,692,896 13.6M/s eta(英国中部时10% [==========> ] 48,519,008 14.3M/s eta(英国中部时10% [===========> ] 51,764,434 14.5M/s eta(英国中部时11% [============> ] 55,067,000 14.8M/s eta(英国中部时12% [=============> ] 58,206,680 15.0M/s eta(英国中部时12% [==============> ] 61,101,920 15.0M/s eta(英国中部时13% [==============> ] 63,260,344 14.7M/s eta(英国中部时14% [===============> ] 66,680,800 14.8M/s eta(英国中部时14% [================> ] 70,203,098 14.8M/s eta(英国中部时15% [================> ] 73,155,403 14.8M/s eta(英国中部时16% [=================> ] 76,283,947 14.7M/s eta(英国中部时16% [==================> ] 79,394,112 14.5M/s eta(英国中部时17% [==================> ] 81,308,456 14.0M/s eta(英国中部时17% [===================> ] 83,498,640 13.7M/s eta(英国中部时18% [====================> ] 86,210,736 13.4M/s eta(英国中部时18% [====================> ] 87,583,192 12.8M/s eta(英国中部时18% [=====================> ] 90,050,770 12.7M/s eta(英国中部时19% [=====================> ] 92,276,182 12.4M/s eta(英国中部时19% [======================> ] 94,615,732 12.0M/s eta(英国中部时20% [======================> ] 96,700,764 11.8M/s eta(英国中部时20% [=======================> ] 99,461,698 11.7M/s eta(英国中部时21% [========================> ] 102,405,648 11.7M/s eta(英国中部时22% [========================> ] 105,072,986 11.8M/s eta(英国中部时22% [=========================> ] 108,946,250 11.9M/s eta(英国中部时23% [==========================> ] 111,262,542 11.9M/s eta(英国中部时23% [==========================> ] 113,445,878 11.4M/s eta(英国中部时24% [===========================> ] 116,450,480 11.3M/s eta(英国中部时25% [============================> ] 119,732,734 11.4M/s eta(英国中部时25% [=============================> ] 122,904,720 11.8M/s eta(英国中部时26% [=============================> ] 125,830,612 11.9M/s eta(英国中部时27% [==============================> ] 128,585,472 12.3M/s eta(英国中部时27% [===============================> ] 131,794,280 12.7M/s eta(英国中部时28% [================================> ] 134,359,718 12.7M/s eta(英国中部时28% [================================> ] 136,644,278 12.7M/s eta(英国中部时29% [=================================> ] 138,554,022 12.6M/s eta(英国中部时29% [=================================> ] 142,007,120 12.8M/s eta(英国中部时30% [==================================> ] 144,845,478 12.8M/s eta(英国中部时31% [===================================> ] 147,997,248 12.8M/s eta(英国中部时31% [====================================> ] 150,996,436 12.7M/s eta(英国中部时32% [====================================> ] 154,053,522 13.0M/s eta(英国中部时33% [=====================================> ] 157,287,892 13.1M/s eta(英国中部时33% [======================================> ] 159,138,600 12.8M/s eta(英国中部时33% [======================================> ] 160,812,360 12.5M/s eta(英国中部时34% [=======================================> ] 163,263,680 12.3M/s eta(英国中部时34% [=======================================> ] 165,788,497 12.2M/s eta(英国中部时35% [========================================> ] 168,245,086 12.2M/s eta(英国中部时35% [=========================================> ] 170,870,560 11.9M/s eta(英国中部时36% [=========================================> ] 173,623,766 12.4M/s eta(英国中部时36% [==========================================> ] 175,305,112 11.9M/s eta(英国中部时37% [==========================================> ] 178,371,406 12.3M/s eta(英国中部时37% [===========================================> ] 179,796,672 11.9M/s eta(英国中部时38% [===========================================> ] 182,552,020 11.7M/s eta(英国中部时38% [============================================> ] 185,151,694 11.5M/s eta(英国中部时39% [=============================================> ] 187,481,814 11.5M/s eta(英国中部时39% [=============================================> ] 189,573,904 11.2M/s eta(英国中部时40% [==============================================> ] 192,167,840 11.1M/s eta(英国中部时41% [==============================================> ] 195,148,622 11.1M/s eta(英国中部时41% [===============================================> ] 197,889,246 11.4M/s eta(英国中部时42% [================================================> ] 201,328,084 11.7M/s eta(英国中部时42% [=================================================> ] 203,887,806 11.8M/s eta(英国中部时43% [=================================================> ] 206,847,934 12.0M/s eta(英国中部时44% [==================================================> ] 209,716,692 12.0M/s eta(英国中部时44% [===================================================> ] 212,932,010 12.2M/s eta(英国中部时45% [===================================================> ] 214,537,409 12.0M/s eta(英国中部时45% [====================================================> ] 218,105,300 12.3M/s eta(英国中部时46% [=====================================================> ] 220,815,734 12.4M/s eta(英国中部时47% [======================================================> ] 224,109,688 12.8M/s eta(英国中部时47% [======================================================> ] 226,605,902 12.8M/s eta(英国中部时48% [=======================================================> ] 229,575,566 13.0M/s eta(英国中部时48% [========================================================> ] 232,278,408 13.1M/s eta(英国中部时49% [========================================================> ] 235,739,656 13.5M/s eta(英国中部时50% [=========================================================> ] 237,895,382 13.3M/s eta(英国中部时50% [=========================================================> ] 239,746,774 13.0M/s eta(英国中部时50% [==========================================================> ] 241,713,496 12.8M/s eta(英国中部时51% [===========================================================> ] 244,185,368 12.6M/s eta(英国中部时51% [===========================================================> ] 246,697,864 12.5M/s eta(英国中部时52% [============================================================> ] 248,990,376 12.3M/s eta(英国中部时52% [============================================================> ] 250,774,080 12.0M/s eta(英国中部时53% [=============================================================> ] 253,119,624 11.9M/s eta(英国中部时53% [=============================================================> ] 255,436,568 11.9M/s eta(英国中部时54% [==============================================================> ] 258,067,782 11.8M/s eta(英国中部时54% [===============================================================> ] 260,815,896 11.6M/s eta(英国中部时55% [===============================================================> ] 263,352,920 11.5M/s eta(英国中部时55% [================================================================> ] 265,763,616 11.4M/s eta(英国中部时56% [=================================================================> ] 268,378,950 11.4M/s eta(英国中部时56% [=================================================================> ] 270,648,788 10.9M/s eta(英国中部时57% [==================================================================> ] 273,993,416 11.3M/s eta(英国中部时58% [===================================================================> ] 276,825,590 9.90M/s eta(英国中部时58% [===================================================================> ] 276,897,022 8.83M/s eta(英国中部时58% [===================================================================> ] 277,222,686 8.32M/s eta(英国中部时58% [===================================================================> ] 277,866,158 7.58M/s eta(英国中部时58% [===================================================================> ] 278,790,406 7.34M/s eta(英国中部时59% [====================================================================> ] 280,761,296 7.22M/s eta(英国中部时59% [====================================================================> ] 283,188,382 7.33M/s eta(英国中部时59% [=====================================================================> ] 285,297,654 7.16M/s eta(英国中部时60% [=====================================================================> ] 288,144,024 7.33M/s eta(英国中部时61% [======================================================================> ] 290,746,200 7.38M/s eta(英国中部时61% [=======================================================================> ] 293,776,038 7.35M/s eta(英国中部时62% [=======================================================================> ] 296,386,262 7.45M/s eta(英国中部时62% [========================================================================> ] 299,142,952 7.51M/s eta(英国中部时63% [=========================================================================> ] 302,017,862 7.40M/s eta(英国中部时64% [=========================================================================> ] 304,705,742 7.30M/s eta(英国中部时64% [==========================================================================> ] 307,413,376 7.41M/s eta(英国中部时65% [===========================================================================> ] 310,379,988 8.75M/s eta(英国中部时65% [============================================================================> ] 313,106,806 10.3M/s eta(英国中部时66% [============================================================================> ] 316,397,198 10.9M/s eta(英国中部时67% [=============================================================================> ] 318,934,006 11.5M/s eta(英国中部时67% [==============================================================================> ] 321,699,878 12.4M/s eta(英国中部时68% [==============================================================================> ] 324,805,560 12.6M/s eta(英国中部时68% [===============================================================================> ] 327,786,408 12.8M/s eta(英国中部时69% [================================================================================> ] 330,917,752 13.0M/s eta(英国中部时70% [=================================================================================> ] 334,843,338 13.4M/s eta(英国中部时70% [==================================================================================> ] 337,726,458 13.4M/s eta(英国中部时71% [==================================================================================> ] 340,768,280 13.5M/s eta(英国中部时72% [===================================================================================> ] 344,017,910 13.7M/s eta(英国中部时73% [====================================================================================> ] 347,389,664 13.9M/s eta(英国中部时73% [=====================================================================================> ] 350,395,214 14.1M/s eta(英国中部时74% [=====================================================================================> ] 353,693,336 14.3M/s eta(英国中部时74% [======================================================================================> ] 356,686,670 14.3M/s eta(英国中部时75% [=======================================================================================> ] 359,980,624 14.5M/s eta(英国中部时76% [========================================================================================> ] 363,002,366 14.5M/s eta(英国中部时76% [========================================================================================> ] 365,734,798 14.4M/s eta(英国中部时77% [=========================================================================================> ] 368,765,734 14.6M/s eta(英国中部时78% [==========================================================================================> ] 371,399,166 14.3M/s eta(英国中部时78% [===========================================================================================> ] 374,857,662 14.4M/s eta(英国中部时79% [===========================================================================================> ] 377,690,622 14.3M/s eta(英国中部时80% [============================================================================================> ] 380,627,854 14.1M/s eta(英国中部时80% [=============================================================================================> ] 383,977,814 13.9M/s eta(英国中部时81% [==============================================================================================> ] 387,101,080 14.0M/s eta(英国中部时82% [==============================================================================================> ] 390,269,270 13.8M/s eta(英国中部时82% [===============================================================================================> ] 394,016,065 13.9M/s eta(英国中部时83% [================================================================================================> ] 396,564,864 13.6M/s eta(英国中部时83% [=================================================================================================> ] 398,999,930 13.6M/s eta(英国中部时84% [=================================================================================================> ] 401,826,062 13.5M/s eta(英国中部时84% [==================================================================================================> ] 404,098,280 13.3M/s eta(英国中部时85% [==================================================================================================> ] 405,307,766 12.6M/s eta(英国中部时85% [===================================================================================================> ] 407,046,486 12.3M/s eta(英国中部时86% [===================================================================================================> ] 409,217,030 12.1M/s eta(英国中部时86% [====================================================================================================> ] 411,245,054 12.0M/s eta(英国中部时86% [====================================================================================================> ] 413,855,278 11.8M/s eta(英国中部时87% [=====================================================================================================> ] 416,420,488 11.8M/s eta(英国中部时88% [======================================================================================================> ] 419,010,448 11.6M/s eta(英国中部时88% [======================================================================================================> ] 421,714,430 11.3M/s eta(英国中部时89% [=======================================================================================================> ] 424,545,166 11.4M/s eta(英国中部时89% [========================================================================================================> ] 426,987,688 11.3M/s eta(英国中部时90% [========================================================================================================> ] 429,958,612 11.4M/s eta(英国中部时90% [=========================================================================================================> ] 432,635,768 11.1M/s eta(英国中部时91% [==========================================================================================================> ] 435,425,256 11.1M/s eta(英国中部时92% [==========================================================================================================> ] 438,483,790 11.4M/s eta(英国中部时92% [===========================================================================================================> ] 441,170,968 11.4M/s eta(英国中部时93% [============================================================================================================> ] 443,781,192 11.5M/s eta(英国中部时93% [============================================================================================================> ] 446,872,398 12.0M/s eta(英国中部时94% [=============================================================================================================> ] 449,699,542 12.4M/s eta(英国中部时95% [==============================================================================================================> ] 452,902,856 12.6M/s eta(英国中部时95% [===============================================================================================================> ] 455,773,904 12.7M/s eta(英国中部时96% [===============================================================================================================> ] 459,259,608 13.2M/s eta(英国中部时96% [================================================================================================================> ] 460,286,862 12.6M/s eta(英国中部时97% [================================================================================================================> ] 462,358,304 12.4M/s eta(英国中部时97% [=================================================================================================================> ] 465,738,238 12.5M/s eta(英国中部时98% [==================================================================================================================> ] 469,219,840 12.8M/s eta(英国中部时99% [===================================================================================================================> ] 472,033,958 12.8M/s eta(英国中部时99% [===================================================================================================================> ] 475,466,504 12.9M/s eta(英国中部时100%[====================================================================================================================>] 475,740,160 12.9M/s in 37s

2018-12-07 16:52:44 (12.1 MB/s) - 已保存 “mysql-5.7.24-1.el6.x86_64.rpm-bundle.tar” [475740160/475740160])

```

# step2 解压 mysql

```sh
[[email protected] ~]# tar -xvf mysql-5.7.24-1.el6.x86_64.rpm-bundle.tar
mysql-community-test-5.7.24-1.el6.x86_64.rpm
mysql-community-client-5.7.24-1.el6.x86_64.rpm
mysql-community-libs-compat-5.7.24-1.el6.x86_64.rpm
mysql-community-libs-5.7.24-1.el6.x86_64.rpm
mysql-community-server-5.7.24-1.el6.x86_64.rpm
mysql-community-devel-5.7.24-1.el6.x86_64.rpm
mysql-community-embedded-5.7.24-1.el6.x86_64.rpm
mysql-community-embedded-devel-5.7.24-1.el6.x86_64.rpm
mysql-community-common-5.7.24-1.el6.x86_64.rpm
```

# step3 rpm 安装错误

```sh
[[email protected] ~]# rpm -ivh mysql-community-common-5.7.24-1.el6.x86_64.rpm
warning: mysql-community-common-5.7.24-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.24-1.el6.x86_64 conflicts with file from package mysql-libs-5.1.73-8.el6_8.x86_64
file /usr/share/mysql/danish/errmsg.sys from install of mysql-community-common-5.7.24-1.el6.x86_64 conflicts with file from package mysql-libs-5.1.73-8.el6_8.x86_64
file /usr/share/mysql/dutch/errmsg.sys from install of mysql-community-common-5.7.24-1.el6.x86_64 conflicts with file from package mysql-libs-5.1.73-8.el6_8.x86_64
file /usr/share/mysql/english/errmsg.sys from install of mysql-community-common-5.7.24-1.el6.x86_64 conflicts with file from package mysql-libs-5.1.73-8.el6_8.x86_64
file /usr/share/mysql/estonian/errmsg.sys from install of mysql-community-common-5.7.24-1.el6.x86_64 conflicts with file from package mysql-libs-5.1.73-8.el6_8.x86_64
file /usr/share/mysql/french/errmsg.sys from install of mysql-community-common-5.7.24-1.el6.x86_64 conflicts with file from package mysql-libs-5.1.73-8.el6_8.x86_64
file /usr/share/mysql/german/errmsg.sys from install of mysql-community-common-5.7.24-1.el6.x86_64 conflicts with file from package mysql-libs-5.1.73-8.el6_8.x86_64
file /usr/share/mysql/greek/errmsg.sys from install of mysql-community-common-5.7.24-1.el6.x86_64 conflicts with file from package mysql-libs-5.1.73-8.el6_8.x86_64
file /usr/share/mysql/hungarian/errmsg.sys from install of mysql-community-common-5.7.24-1.el6.x86_64 conflicts with file from package mysql-libs-5.1.73-8.el6_8.x86_64
file /usr/share/mysql/italian/errmsg.sys from install of mysql-community-common-5.7.24-1.el6.x86_64 conflicts with file from package mysql-libs-5.1.73-8.el6_8.x86_64
file /usr/share/mysql/japanese/errmsg.sys from install of mysql-community-common-5.7.24-1.el6.x86_64 conflicts with file from package mysql-libs-5.1.73-8.el6_8.x86_64
file /usr/share/mysql/korean/errmsg.sys from install of mysql-community-common-5.7.24-1.el6.x86_64 conflicts with file from package mysql-libs-5.1.73-8.el6_8.x86_64
file /usr/share/mysql/norwegian-ny/errmsg.sys from install of mysql-community-common-5.7.24-1.el6.x86_64 conflicts with file from package mysql-libs-5.1.73-8.el6_8.x86_64
file /usr/share/mysql/norwegian/errmsg.sys from install of mysql-community-common-5.7.24-1.el6.x86_64 conflicts with file from package mysql-libs-5.1.73-8.el6_8.x86_64
file /usr/share/mysql/polish/errmsg.sys from install of mysql-community-common-5.7.24-1.el6.x86_64 conflicts with file from package mysql-libs-5.1.73-8.el6_8.x86_64
file /usr/share/mysql/portuguese/errmsg.sys from install of mysql-community-common-5.7.24-1.el6.x86_64 conflicts with file from package mysql-libs-5.1.73-8.el6_8.x86_64
file /usr/share/mysql/romanian/errmsg.sys from install of mysql-community-common-5.7.24-1.el6.x86_64 conflicts with file from package mysql-libs-5.1.73-8.el6_8.x86_64
file /usr/share/mysql/russian/errmsg.sys from install of mysql-community-common-5.7.24-1.el6.x86_64 conflicts with file from package mysql-libs-5.1.73-8.el6_8.x86_64
file /usr/share/mysql/serbian/errmsg.sys from install of mysql-community-common-5.7.24-1.el6.x86_64 conflicts with file from package mysql-libs-5.1.73-8.el6_8.x86_64
file /usr/share/mysql/slovak/errmsg.sys from install of mysql-community-common-5.7.24-1.el6.x86_64 conflicts with file from package mysql-libs-5.1.73-8.el6_8.x86_64
file /usr/share/mysql/spanish/errmsg.sys from install of mysql-community-common-5.7.24-1.el6.x86_64 conflicts with file from package mysql-libs-5.1.73-8.el6_8.x86_64
file /usr/share/mysql/swedish/errmsg.sys from install of mysql-community-common-5.7.24-1.el6.x86_64 conflicts with file from package mysql-libs-5.1.73-8.el6_8.x86_64
file /usr/share/mysql/ukrainian/errmsg.sys from install of mysql-community-common-5.7.24-1.el6.x86_64 conflicts with file from package mysql-libs-5.1.73-8.el6_8.x86_64
file /usr/share/mysql/charsets/Index.xml from install of mysql-community-common-5.7.24-1.el6.x86_64 conflicts with file from package mysql-libs-5.1.73-8.el6_8.x86_64
file /usr/share/mysql/charsets/armscii8.xml from install of mysql-community-common-5.7.24-1.el6.x86_64 conflicts with file from package mysql-libs-5.1.73-8.el6_8.x86_64
file /usr/share/mysql/charsets/ascii.xml from install of mysql-community-common-5.7.24-1.el6.x86_64 conflicts with file from package mysql-libs-5.1.73-8.el6_8.x86_64
file /usr/share/mysql/charsets/cp1250.xml from install of mysql-community-common-5.7.24-1.el6.x86_64 conflicts with file from package mysql-libs-5.1.73-8.el6_8.x86_64
file /usr/share/mysql/charsets/cp1256.xml from install of mysql-community-common-5.7.24-1.el6.x86_64 conflicts with file from package mysql-libs-5.1.73-8.el6_8.x86_64
file /usr/share/mysql/charsets/cp1257.xml from install of mysql-community-common-5.7.24-1.el6.x86_64 conflicts with file from package mysql-libs-5.1.73-8.el6_8.x86_64
file /usr/share/mysql/charsets/cp850.xml from install of mysql-community-common-5.7.24-1.el6.x86_64 conflicts with file from package mysql-libs-5.1.73-8.el6_8.x86_64
file /usr/share/mysql/charsets/cp852.xml from install of mysql-community-common-5.7.24-1.el6.x86_64 conflicts with file from package mysql-libs-5.1.73-8.el6_8.x86_64
file /usr/share/mysql/charsets/cp866.xml from install of mysql-community-common-5.7.24-1.el6.x86_64 conflicts with file from package mysql-libs-5.1.73-8.el6_8.x86_64
file /usr/share/mysql/charsets/dec8.xml from install of mysql-community-common-5.7.24-1.el6.x86_64 conflicts with file from package mysql-libs-5.1.73-8.el6_8.x86_64
file /usr/share/mysql/charsets/geostd8.xml from install of mysql-community-common-5.7.24-1.el6.x86_64 conflicts with file from package mysql-libs-5.1.73-8.el6_8.x86_64
file /usr/share/mysql/charsets/greek.xml from install of mysql-community-common-5.7.24-1.el6.x86_64 conflicts with file from package mysql-libs-5.1.73-8.el6_8.x86_64
file /usr/share/mysql/charsets/hebrew.xml from install of mysql-community-common-5.7.24-1.el6.x86_64 conflicts with file from package mysql-libs-5.1.73-8.el6_8.x86_64
file /usr/share/mysql/charsets/hp8.xml from install of mysql-community-common-5.7.24-1.el6.x86_64 conflicts with file from package mysql-libs-5.1.73-8.el6_8.x86_64
file /usr/share/mysql/charsets/keybcs2.xml from install of mysql-community-common-5.7.24-1.el6.x86_64 conflicts with file from package mysql-libs-5.1.73-8.el6_8.x86_64
file /usr/share/mysql/charsets/koi8r.xml from install of mysql-community-common-5.7.24-1.el6.x86_64 conflicts with file from package mysql-libs-5.1.73-8.el6_8.x86_64
file /usr/share/mysql/charsets/koi8u.xml from install of mysql-community-common-5.7.24-1.el6.x86_64 conflicts with file from package mysql-libs-5.1.73-8.el6_8.x86_64
file /usr/share/mysql/charsets/latin1.xml from install of mysql-community-common-5.7.24-1.el6.x86_64 conflicts with file from package mysql-libs-5.1.73-8.el6_8.x86_64
file /usr/share/mysql/charsets/latin2.xml from install of mysql-community-common-5.7.24-1.el6.x86_64 conflicts with file from package mysql-libs-5.1.73-8.el6_8.x86_64
file /usr/share/mysql/charsets/latin5.xml from install of mysql-community-common-5.7.24-1.el6.x86_64 conflicts with file from package mysql-libs-5.1.73-8.el6_8.x86_64
file /usr/share/mysql/charsets/latin7.xml from install of mysql-community-common-5.7.24-1.el6.x86_64 conflicts with file from package mysql-libs-5.1.73-8.el6_8.x86_64
file /usr/share/mysql/charsets/macce.xml from install of mysql-community-common-5.7.24-1.el6.x86_64 conflicts with file from package mysql-libs-5.1.73-8.el6_8.x86_64
file /usr/share/mysql/charsets/macroman.xml from install of mysql-community-common-5.7.24-1.el6.x86_64 conflicts with file from package mysql-libs-5.1.73-8.el6_8.x86_64
file /usr/share/mysql/charsets/swe7.xml from install of mysql-community-common-5.7.24-1.el6.x86_64 conflicts with file from package mysql-libs-5.1.73-8.el6_8.x86_64
[[email protected] ~]# rpm -ivh mysql-community-libs-5.7.24-1.el6.x86_64.rpm
warning: mysql-community-libs-5.7.24-1.el6.x86_64.rpm: Header V3 DSA/SHA1 Signature, key ID 5072e1f5: NOKEY
error: Failed dependencies:
mysql-community-common(x86-64) >= 5.7.9 is needed by mysql-community-libs-5.7.24-1.el6.x86_64
[[email protected] ~]# rpm -ivh mysql-community-client-5.7.24-1.el6.x86_64.rpm
warning: mysql-community-client-5.7.24-1.el6.x86_64.rpm: Header V3 DSA/SHA1 Signature, key ID 5072e1f5: NOKEY
error: Failed dependencies:
mysql-community-libs(x86-64) >= 5.7.9 is needed by mysql-community-client-5.7.24-1.el6.x86_64
[[email protected] ~]# rpm -ivh mysql-community-server-5.7.24-1.el6.x86_64.rpm
warning: mysql-community-server-5.7.24-1.el6.x86_64.rpm: Header V3 DSA/SHA1 Signature, key ID 5072e1f5: NOKEY
error: Failed dependencies:
mysql-community-client(x86-64) >= 5.7.9 is needed by mysql-community-server-5.7.24-1.el6.x86_64
mysql-community-common(x86-64) = 5.7.24-1.el6 is needed by mysql-community-server-5.7.24-1.el6.x86_64
```


# step4 删除之前的 mysql lib

```sh
[[email protected] ~]# rpm -qa | grep mysql
mysql-libs-5.1.73-8.el6_8.x86_64

[[email protected] ~]# yum -y remove mysql-libs-5.1.73-8.el6_8.x86_64
已加载插件:fastestmirror
设置移除进程
解决依赖关系
--> 执行事务检查
---> Package mysql-libs.x86_64 0:5.1.73-8.el6_8 will be 删除
--> 处理依赖关系 libmysqlclient.so.16()(64bit),它被软件包 2:postfix-2.6.6-8.el6.x86_64 需要
--> 处理依赖关系 libmysqlclient.so.16(libmysqlclient_16)(64bit),它被软件包 2:postfix-2.6.6-8.el6.x86_64 需要
--> 处理依赖关系 mysql-libs,它被软件包 2:postfix-2.6.6-8.el6.x86_64 需要
--> 执行事务检查
---> Package postfix.x86_64 2:2.6.6-8.el6 will be 删除
--> 处理依赖关系 /usr/sbin/sendmail,它被软件包 cronie-1.4.4-16.el6_8.2.x86_64 需要
--> 执行事务检查
---> Package cronie.x86_64 0:1.4.4-16.el6_8.2 will be 删除
--> 处理依赖关系 cronie = 1.4.4-16.el6_8.2,它被软件包 cronie-anacron-1.4.4-16.el6_8.2.x86_64 需要
--> 执行事务检查
---> Package cronie-anacron.x86_64 0:1.4.4-16.el6_8.2 will be 删除
--> 处理依赖关系 /etc/cron.d,它被软件包 crontabs-1.10-33.el6.noarch 需要
--> 处理依赖关系 /etc/cron.d,它被软件包 sysstat-9.0.4-33el6_9.1.x86_64 需要
--> 使用新的信息重新计算依赖关系
--> 执行事务检查
---> Package crontabs.noarch 0:1.10-33.el6 will be 删除
---> Package sysstat.x86_64 0:9.0.4-33el6_9.1 will be 删除
--> 完成依赖关系计算

依赖关系解决

==============================================================================================================================================================
软件包 架构 版本 仓库 大小
==============================================================================================================================================================
正在删除:
mysql-libs x86_64 5.1.73-8.el6_8 @anaconda-CentOS-201703281317.x86_64/6.9 4.0 M
为依赖而移除:
cronie x86_64 1.4.4-16.el6_8.2 @anaconda-CentOS-201703281317.x86_64/6.9 174 k
cronie-anacron x86_64 1.4.4-16.el6_8.2 @anaconda-CentOS-201703281317.x86_64/6.9 43 k
crontabs noarch 1.10-33.el6 @anaconda-CentOS-201703281317.x86_64/6.9 2.4 k
postfix x86_64 2:2.6.6-8.el6 @anaconda-CentOS-201703281317.x86_64/6.9 9.7 M
sysstat x86_64 9.0.4-33el6_9.1 @updates 826 k

事务概要
==============================================================================================================================================================
Remove 6 Package(s)

Installed size: 15 M
下载软件包:
运行 rpm_check_debug
执行事务测试
事务测试成功
执行事务
正在删除 : sysstat-9.0.4-33el6_9.1.x86_64 1/6
正在删除 : crontabs-1.10-33.el6.noarch 2/6
正在删除 : cronie-anacron-1.4.4-16.el6_8.2.x86_64 3/6
正在删除 : cronie-1.4.4-16.el6_8.2.x86_64 4/6
正在删除 : 2:postfix-2.6.6-8.el6.x86_64 5/6
正在删除 : mysql-libs-5.1.73-8.el6_8.x86_64 6/6
Verifying : sysstat-9.0.4-33el6_9.1.x86_64 1/6
Verifying : cronie-anacron-1.4.4-16.el6_8.2.x86_64 2/6
Verifying : cronie-1.4.4-16.el6_8.2.x86_64 3/6
Verifying : 2:postfix-2.6.6-8.el6.x86_64 4/6
Verifying : crontabs-1.10-33.el6.noarch 5/6
Verifying : mysql-libs-5.1.73-8.el6_8.x86_64 6/6

删除:
mysql-libs.x86_64 0:5.1.73-8.el6_8

作为依赖被删除:
cronie.x86_64 0:1.4.4-16.el6_8.2 cronie-anacron.x86_64 0:1.4.4-16.el6_8.2 crontabs.noarch 0:1.10-33.el6 postfix.x86_64 2:2.6.6-8.el6
sysstat.x86_64 0:9.0.4-33el6_9.1

完毕!
[[email protected] ~]# rm -fr /usr/lib/mysql
[[email protected] ~]# rm -fr /usr/include/mysql
[[email protected] ~]# rm -f /etc/my.cnf
[[email protected] ~]# rm -fr /var/lib/mysql
[[email protected] ~]#
[[email protected] ~]#
[[email protected] ~]# rm -fr /usr/share/mysql
```

# step5 安装依赖库 bison-devel ncurses-devel libaio libaio-devel

```sh
[[email protected] ~]# yum -y install make gcc-c++ cmake bison-devel ncurses-devel libaio libaio-devel
已加载插件:fastestmirror
设置安装进程
Determining fastest mirrors
base | 3.7 kB 00:00
base/primary_db | 4.7 MB 00:00
epel | 3.2 kB 00:00
epel/primary | 3.2 MB 00:00
epel 12501/12501
extras | 3.4 kB 00:00
extras/primary_db | 27 kB 00:00
updates | 3.4 kB 00:00
updates/primary_db | 1.9 MB 00:00
包 1:make-3.81-23.el6.x86_64 已安装并且是最新版本
包 libaio-0.3.107-10.el6.x86_64 已安装并且是最新版本
解决依赖关系
--> 执行事务检查
---> Package bison-devel.x86_64 0:2.4.1-5.el6 will be 安装
---> Package cmake.x86_64 0:2.8.12.2-4.el6 will be 安装
--> 处理依赖关系 libarchive.so.2()(64bit),它被软件包 cmake-2.8.12.2-4.el6.x86_64 需要
---> Package gcc-c++.x86_64 0:4.4.7-23.el6 will be 安装
--> 处理依赖关系 libstdc++-devel = 4.4.7-23.el6,它被软件包 gcc-c++-4.4.7-23.el6.x86_64 需要
--> 处理依赖关系 libstdc++ = 4.4.7-23.el6,它被软件包 gcc-c++-4.4.7-23.el6.x86_64 需要
--> 处理依赖关系 gcc = 4.4.7-23.el6,它被软件包 gcc-c++-4.4.7-23.el6.x86_64 需要
--> 处理依赖关系 libmpfr.so.1()(64bit),它被软件包 gcc-c++-4.4.7-23.el6.x86_64 需要
---> Package libaio-devel.x86_64 0:0.3.107-10.el6 will be 安装
---> Package ncurses-devel.x86_64 0:5.7-4.20090207.el6 will be 安装
--> 执行事务检查
---> Package gcc.x86_64 0:4.4.7-23.el6 will be 安装
--> 处理依赖关系 libgomp = 4.4.7-23.el6,它被软件包 gcc-4.4.7-23.el6.x86_64 需要
--> 处理依赖关系 cpp = 4.4.7-23.el6,它被软件包 gcc-4.4.7-23.el6.x86_64 需要
--> 处理依赖关系 libgcc >= 4.4.7-23.el6,它被软件包 gcc-4.4.7-23.el6.x86_64 需要
--> 处理依赖关系 glibc-devel >= 2.2.90-12,它被软件包 gcc-4.4.7-23.el6.x86_64 需要
--> 处理依赖关系 cloog-ppl >= 0.15,它被软件包 gcc-4.4.7-23.el6.x86_64 需要
--> 处理依赖关系 libgomp.so.1()(64bit),它被软件包 gcc-4.4.7-23.el6.x86_64 需要
---> Package libarchive.x86_64 0:2.8.3-7.el6_8 will be 安装
---> Package libstdc++.x86_64 0:4.4.7-18.el6_9.2 will be 升级
---> Package libstdc++.x86_64 0:4.4.7-23.el6 will be an update
---> Package libstdc++-devel.x86_64 0:4.4.7-23.el6 will be 安装
---> Package mpfr.x86_64 0:2.4.1-6.el6 will be 安装
--> 执行事务检查
---> Package cloog-ppl.x86_64 0:0.15.7-1.2.el6 will be 安装
--> 处理依赖关系 libppl_c.so.2()(64bit),它被软件包 cloog-ppl-0.15.7-1.2.el6.x86_64 需要
--> 处理依赖关系 libppl.so.7()(64bit),它被软件包 cloog-ppl-0.15.7-1.2.el6.x86_64 需要
---> Package cpp.x86_64 0:4.4.7-23.el6 will be 安装
---> Package glibc-devel.x86_64 0:2.12-1.212.el6 will be 安装
--> 处理依赖关系 glibc-headers = 2.12-1.212.el6,它被软件包 glibc-devel-2.12-1.212.el6.x86_64 需要
--> 处理依赖关系 glibc = 2.12-1.212.el6,它被软件包 glibc-devel-2.12-1.212.el6.x86_64 需要
--> 处理依赖关系 glibc-headers,它被软件包 glibc-devel-2.12-1.212.el6.x86_64 需要
---> Package libgcc.x86_64 0:4.4.7-18.el6_9.2 will be 升级
---> Package libgcc.x86_64 0:4.4.7-23.el6 will be an update
---> Package libgomp.x86_64 0:4.4.7-23.el6 will be 安装
--> 执行事务检查
---> Package glibc.x86_64 0:2.12-1.209.el6_9.2 will be 升级
--> 处理依赖关系 glibc = 2.12-1.209.el6_9.2,它被软件包 nscd-2.12-1.209.el6_9.2.x86_64 需要
--> 处理依赖关系 glibc = 2.12-1.209.el6_9.2,它被软件包 glibc-common-2.12-1.209.el6_9.2.x86_64 需要
---> Package glibc.x86_64 0:2.12-1.212.el6 will be an update
---> Package glibc-headers.x86_64 0:2.12-1.212.el6 will be 安装
--> 处理依赖关系 kernel-headers >= 2.2.1,它被软件包 glibc-headers-2.12-1.212.el6.x86_64 需要
--> 处理依赖关系 kernel-headers,它被软件包 glibc-headers-2.12-1.212.el6.x86_64 需要
---> Package ppl.x86_64 0:0.10.2-11.el6 will be 安装
--> 执行事务检查
---> Package glibc-common.x86_64 0:2.12-1.209.el6_9.2 will be 升级
---> Package glibc-common.x86_64 0:2.12-1.212.el6 will be an update
---> Package kernel-headers.x86_64 0:2.6.32-754.6.3.el6 will be 安装
---> Package nscd.x86_64 0:2.12-1.209.el6_9.2 will be 升级
---> Package nscd.x86_64 0:2.12-1.212.el6 will be an update
--> 完成依赖关系计算

依赖关系解决

==============================================================================================================================================================
软件包 架构 版本 仓库 大小
==============================================================================================================================================================
正在安装:
bison-devel x86_64 2.4.1-5.el6 base 21 k
cmake x86_64 2.8.12.2-4.el6 base 8.0 M
gcc-c++ x86_64 4.4.7-23.el6 base 4.7 M
libaio-devel x86_64 0.3.107-10.el6 base 13 k
ncurses-devel x86_64 5.7-4.20090207.el6 base 641 k
为依赖而安装:
cloog-ppl x86_64 0.15.7-1.2.el6 base 93 k
cpp x86_64 4.4.7-23.el6 base 3.7 M
gcc x86_64 4.4.7-23.el6 base 10 M
glibc-devel x86_64 2.12-1.212.el6 base 991 k
glibc-headers x86_64 2.12-1.212.el6 base 620 k
kernel-headers x86_64 2.6.32-754.6.3.el6 updates 4.5 M
libarchive x86_64 2.8.3-7.el6_8 base 127 k
libgomp x86_64 4.4.7-23.el6 base 135 k
libstdc++-devel x86_64 4.4.7-23.el6 base 1.6 M
mpfr x86_64 2.4.1-6.el6 base 157 k
ppl x86_64 0.10.2-11.el6 base 1.3 M
为依赖而更新:
glibc x86_64 2.12-1.212.el6 base 3.8 M
glibc-common x86_64 2.12-1.212.el6 base 14 M
libgcc x86_64 4.4.7-23.el6 base 104 k
libstdc++ x86_64 4.4.7-23.el6 base 296 k
nscd x86_64 2.12-1.212.el6 base 232 k

事务概要
==============================================================================================================================================================
Install 16 Package(s)
Upgrade 5 Package(s)

总下载量:55 M
下载软件包:
(1/21): bison-devel-2.4.1-5.el6.x86_64.rpm | 21 kB 00:00
(2/21): cloog-ppl-0.15.7-1.2.el6.x86_64.rpm | 93 kB 00:00
(3/21): cmake-2.8.12.2-4.el6.x86_64.rpm | 8.0 MB 00:00
(4/21): cpp-4.4.7-23.el6.x86_64.rpm | 3.7 MB 00:00
(5/21): gcc-4.4.7-23.el6.x86_64.rpm | 10 MB 00:00
(6/21): gcc-c++-4.4.7-23.el6.x86_64.rpm | 4.7 MB 00:00
(7/21): glibc-2.12-1.212.el6.x86_64.rpm | 3.8 MB 00:00
(8/21): glibc-common-2.12-1.212.el6.x86_64.rpm | 14 MB 00:00
(9/21): glibc-devel-2.12-1.212.el6.x86_64.rpm | 991 kB 00:00
(10/21): glibc-headers-2.12-1.212.el6.x86_64.rpm | 620 kB 00:00
(11/21): kernel-headers-2.6.32-754.6.3.el6.x86_64.rpm | 4.5 MB 00:00
(12/21): libaio-devel-0.3.107-10.el6.x86_64.rpm | 13 kB 00:00
(13/21): libarchive-2.8.3-7.el6_8.x86_64.rpm | 127 kB 00:00
(14/21): libgcc-4.4.7-23.el6.x86_64.rpm | 104 kB 00:00
(15/21): libgomp-4.4.7-23.el6.x86_64.rpm | 135 kB 00:00
(16/21): libstdc++-4.4.7-23.el6.x86_64.rpm | 296 kB 00:00
(17/21): libstdc++-devel-4.4.7-23.el6.x86_64.rpm | 1.6 MB 00:00
(18/21): mpfr-2.4.1-6.el6.x86_64.rpm | 157 kB 00:00
(19/21): ncurses-devel-5.7-4.20090207.el6.x86_64.rpm | 641 kB 00:00
(20/21): nscd-2.12-1.212.el6.x86_64.rpm | 232 kB 00:00
(21/21): ppl-0.10.2-11.el6.x86_64.rpm | 1.3 MB 00:00
--------------------------------------------------------------------------------------------------------------------------------------------------------------
总计 28 MB/s | 55 MB 00:01
运行 rpm_check_debug
执行事务测试
事务测试成功
执行事务
正在升级 : libgcc-4.4.7-23.el6.x86_64 1/26
正在升级 : glibc-2.12-1.212.el6.x86_64 2/26
正在升级 : glibc-common-2.12-1.212.el6.x86_64 3/26
正在升级 : libstdc++-4.4.7-23.el6.x86_64 4/26
正在安装 : mpfr-2.4.1-6.el6.x86_64 5/26
正在安装 : cpp-4.4.7-23.el6.x86_64 6/26
正在安装 : libstdc++-devel-4.4.7-23.el6.x86_64 7/26
正在安装 : ppl-0.10.2-11.el6.x86_64 8/26
正在安装 : cloog-ppl-0.15.7-1.2.el6.x86_64 9/26
正在安装 : libgomp-4.4.7-23.el6.x86_64 10/26
正在安装 : libarchive-2.8.3-7.el6_8.x86_64 11/26
正在安装 : kernel-headers-2.6.32-754.6.3.el6.x86_64 12/26
正在安装 : glibc-headers-2.12-1.212.el6.x86_64 13/26
正在安装 : glibc-devel-2.12-1.212.el6.x86_64 14/26
正在安装 : gcc-4.4.7-23.el6.x86_64 15/26
正在安装 : gcc-c++-4.4.7-23.el6.x86_64 16/26
正在安装 : cmake-2.8.12.2-4.el6.x86_64 17/26
正在升级 : nscd-2.12-1.212.el6.x86_64 18/26
正在安装 : bison-devel-2.4.1-5.el6.x86_64 19/26
正在安装 : ncurses-devel-5.7-4.20090207.el6.x86_64 20/26
正在安装 : libaio-devel-0.3.107-10.el6.x86_64 21/26
清理 : libstdc++-4.4.7-18.el6_9.2.x86_64 22/26
清理 : nscd-2.12-1.209.el6_9.2.x86_64 23/26
清理 : glibc-common-2.12-1.209.el6_9.2.x86_64 24/26
清理 : glibc-2.12-1.209.el6_9.2.x86_64 25/26
清理 : libgcc-4.4.7-18.el6_9.2.x86_64 26/26
Verifying : gcc-4.4.7-23.el6.x86_64 1/26
Verifying : glibc-headers-2.12-1.212.el6.x86_64 2/26
Verifying : libaio-devel-0.3.107-10.el6.x86_64 3/26
Verifying : libgomp-4.4.7-23.el6.x86_64 4/26
Verifying : libarchive-2.8.3-7.el6_8.x86_64 5/26
Verifying : cmake-2.8.12.2-4.el6.x86_64 6/26
Verifying : libstdc++-devel-4.4.7-23.el6.x86_64 7/26
Verifying : glibc-devel-2.12-1.212.el6.x86_64 8/26
Verifying : mpfr-2.4.1-6.el6.x86_64 9/26
Verifying : nscd-2.12-1.212.el6.x86_64 10/26
Verifying : cloog-ppl-0.15.7-1.2.el6.x86_64 11/26
Verifying : ncurses-devel-5.7-4.20090207.el6.x86_64 12/26
Verifying : gcc-c++-4.4.7-23.el6.x86_64 13/26
Verifying : glibc-common-2.12-1.212.el6.x86_64 14/26
Verifying : ppl-0.10.2-11.el6.x86_64 15/26
Verifying : glibc-2.12-1.212.el6.x86_64 16/26
Verifying : bison-devel-2.4.1-5.el6.x86_64 17/26
Verifying : libstdc++-4.4.7-23.el6.x86_64 18/26
Verifying : cpp-4.4.7-23.el6.x86_64 19/26
Verifying : kernel-headers-2.6.32-754.6.3.el6.x86_64 20/26
Verifying : libgcc-4.4.7-23.el6.x86_64 21/26
Verifying : nscd-2.12-1.209.el6_9.2.x86_64 22/26
Verifying : libgcc-4.4.7-18.el6_9.2.x86_64 23/26
Verifying : glibc-common-2.12-1.209.el6_9.2.x86_64 24/26
Verifying : libstdc++-4.4.7-18.el6_9.2.x86_64 25/26
Verifying : glibc-2.12-1.209.el6_9.2.x86_64 26/26

已安装:
bison-devel.x86_64 0:2.4.1-5.el6 cmake.x86_64 0:2.8.12.2-4.el6 gcc-c++.x86_64 0:4.4.7-23.el6 libaio-devel.x86_64 0:0.3.107-10.el6
ncurses-devel.x86_64 0:5.7-4.20090207.el6

作为依赖被安装:
cloog-ppl.x86_64 0:0.15.7-1.2.el6 cpp.x86_64 0:4.4.7-23.el6 gcc.x86_64 0:4.4.7-23.el6 glibc-devel.x86_64 0:2.12-1.212.el6
glibc-headers.x86_64 0:2.12-1.212.el6 kernel-headers.x86_64 0:2.6.32-754.6.3.el6 libarchive.x86_64 0:2.8.3-7.el6_8 libgomp.x86_64 0:4.4.7-23.el6
libstdc++-devel.x86_64 0:4.4.7-23.el6 mpfr.x86_64 0:2.4.1-6.el6 ppl.x86_64 0:0.10.2-11.el6

作为依赖被升级:
glibc.x86_64 0:2.12-1.212.el6 glibc-common.x86_64 0:2.12-1.212.el6 libgcc.x86_64 0:4.4.7-23.el6 libstdc++.x86_64 0:4.4.7-23.el6
nscd.x86_64 0:2.12-1.212.el6

完毕!
```

# step6 rpm 安装 mysql

```sh
[[email protected] ~]# rpm -ivh mysql-community-common-5.7.24-1.el6.x86_64.rpm
warning: mysql-community-common-5.7.24-1.el6.x86_64.rpm: Header V3 DSA/SHA1 Signature, key ID 5072e1f5: NOKEY
Preparing... ########################################### [100%]
1:mysql-community-common ########################################### [100%]
[[email protected] ~]# rpm -ivh mysql-community-libs-5.7.24-1.el6.x86_64.rpm
warning: mysql-community-libs-5.7.24-1.el6.x86_64.rpm: Header V3 DSA/SHA1 Signature, key ID 5072e1f5: NOKEY
Preparing... ########################################### [100%]
1:mysql-community-libs ########################################### [100%]
[[email protected] ~]# rpm -ivh mysql-community-client-5.7.24-1.el6.x86_64.rpm
warning: mysql-community-client-5.7.24-1.el6.x86_64.rpm: Header V3 DSA/SHA1 Signature, key ID 5072e1f5: NOKEY
Preparing... ########################################### [100%]
1:mysql-community-client ########################################### [100%]
[[email protected] ~]# rpm -ivh mysql-community-server-5.7.24-1.el6.x86_64.rpm
warning: mysql-community-server-5.7.24-1.el6.x86_64.rpm: Header V3 DSA/SHA1 Signature, key ID 5072e1f5: NOKEY
Preparing... ########################################### [100%]
1:mysql-community-server ########################################### [100%]
```

# step7 初始化数据库

```sh
[[email protected] ~]# mysqld --initialize --user=mysql
```

# step8 拷贝初始密码

```sh
[[email protected] ~]# vim /var/log/mysqld.log
```

# step9 登录mysql

```sh
[[email protected] ~]# mysql -u root -p
Enter password:
Welcome to the MySQL monitor. Commands end with ; or g.
Your MySQL connection id is 3
Server version: 5.7.24

Copyright (c) 2000, 2018, 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>
mysql>
mysql>
```

# step10 修改密码

```sh
mysql> alter user ‘root‘@‘localhost‘ identified by ‘33css’;
ERROR 1064 (42000): You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ‘‘33css’‘ at line 1
mysql> alter user ‘root‘@‘localhost‘ identified by ‘33css‘;
Query OK, 0 rows affected (0.00 sec)

mysql> update user set user.Host=‘%‘ where user.User=‘root‘;
ERROR 1046 (3D000): No database selected
mysql>
mysql> use mysql;
Reading table information for completion of table and column names
You can turn off this feature to get a quicker startup with -A

Database changed
mysql> update user set user.Host=‘%‘ where user.User=‘root‘;
Query OK, 1 row affected (0.00 sec)
Rows matched: 1 Changed: 1 Warnings: 0

mysql>
mysql> flush privileges;
Query OK, 0 rows affected (0.00 sec)

mysql> quit
Bye
```

# step11 新密码登录

```sh
[[email protected] ~]# mysql -u root -p33css
mysql: [Warning] Using a password on the command line interface can be insecure.
Welcome to the MySQL monitor. Commands end with ; or g.
Your MySQL connection id is 4
Server version: 5.7.24 MySQL Community Server (GPL)

Copyright (c) 2000, 2018, 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>
mysql>
mysql>
mysql> show databases;
+--------------------+
| Database |
+--------------------+
| information_schema |
| mysql |
| performance_schema |
| sys |
+--------------------+
4 rows in set (0.00 sec)

mysql>
```

 



























































































































































































































































































































































































































以上是关于centos6.9-mysql5.7.24-install的主要内容,如果未能解决你的问题,请参考以下文章