rhel7瀹夎mysql5.7

Posted

tags:

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

鏍囩锛?a href='http://www.mamicode.com/so/1/load' title='load'>load   row   寰堝   pass   鑷惎   dep   adb   灏辨槸   inf   

鍘熸枃鍦板潃锛歨ttps://www.cnblogs.com/zq8421/p/10086361.html

---------------------绾㈠附7----------------------

涓€銆佺櫥褰昅ySQL瀹樼綉涓嬭浇mysql

涓嬭浇鍦板潃锛歨ttps://dev.mysql.com/downloads/mysql/

鍥犱负鏈変緷璧栧叧绯伙紝寰椾笅杞戒笅闈簲涓寘

mysql-community-client-5.7.24-1.el7.x86_64.rpm
mysql-community-common-5.7.24-1.el7.x86_64.rpm
mysql-community-devel-5.7.24-1.el7.x86_64.rpm
mysql-community-libs-5.7.24-1.el7.x86_64.rpm
mysql-community-server-5.7.24-1.el7.x86_64.rpm

浜屻€佹煡鐪嬬郴缁熸槸鍚﹀凡缁忓畨瑁呬簡mysql娌℃湁

浠g爜 rpm -aq | grep mysql

Mariadb鏄痳hel绯荤粺宸茬粡瀹夎濂戒簡鐨勶紝闇€瑕佸嵏杞芥帀锛屽畨瑁匨ySQL鏃跺彲鑳芥湁鍐茬獊锛屾煡鐪婱ariadb锛屼唬鐮?rpm -qa | grep mariadb

涓夈€佸嵏杞組ariadb

鐢?rpm -e 鍗歌浇锛屽洜涓烘湁鏈変緷璧栧叧绯伙紝鏈熬鍔犱笂 --nodeps涓嶉【渚濊禆鍏崇郴寮哄埗鍗歌浇

rpm  -e  鍖呭悕  --nodeps

鍥涖€佸垱寤哄畨瑁呮枃浠跺す

[root@localhost Desktop]# mkdir -p /usr/local/mysql

鍏€佸紑濮嬪畨瑁?/h2>

鍚勪釜鏂囦欢鏄湁渚濊禆鎬х殑锛屽繀椤绘寜浠ヤ笅椤哄簭瀹夎

mysql-community-common-5.7.24-1.el7.x86_64.rpm

mysql-community-libs-5.7.24-1.el7.x86_64.rpm

mysql-community-client-5.7.24-1.el7.x86_64.rpm

imysql-community-server-5.7.24-1.el7.x86_64.rpm

mysql-community-devel-5.7.24-1.el7.x86_64.rpm

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

mysql瀹夎瀹屾瘯鍚庯紝鏄笉浼氳嚜鍔ㄥ惎鍔ㄧ殑锛屼絾鏄涓€娆″惎鍔ㄥ悗锛屼互鍚庡紑鏈洪兘鏄嚜鍚殑锛屾病鏈夌涓€娆″惎鍔ㄤ箣鍓嶏紝涔熸槸娌℃湁瀵嗙爜鐨勩€傚綋浣犵涓€娆″惎鍔∕ySQL鏈嶅姟鍣ㄧ殑鏃跺€欙紝mysql鑷繁灏变細鑷繁鍋氬緢澶氫簨鎯咃紝鍏朵腑涔嬩竴閲嶈鐨勫氨鏄垵濮嬪瘑鐮?/p>

涓冦€?鍚姩mysql鏈嶅姟

[root@localhost mysql]# systemctl start mysqld.service 
[root@localhost mysql]# systemctl status mysqld.service 
mysqld.service - MySQL Server
   Loaded: loaded (/usr/lib/systemd/system/mysqld.service; enabled)
   Active: active (running) since Sat 2018-12-08 00:13:35 CST; 10s ago
     Docs: man:mysqld(8)
           http://dev.mysql.com/doc/refman/en/using-systemd.html
  Process: 4150 ExecStart=/usr/sbin/mysqld --daemonize --pid-file=/var/run/mysqld/mysqld.pid $MYSQLD_OPTS (code=exited, status=0/SUCCESS)
  Process: 4072 ExecStartPre=/usr/bin/mysqld_pre_systemd (code=exited, status=0/SUCCESS)
 Main PID: 4153 (mysqld)
   CGroup: /system.slice/mysqld.service
           鈹斺攢4153 /usr/sbin/mysqld --daemonize --pid-file=/var/run/mysqld/mys...

Dec 08 00:13:35 localhost.localdomain systemd[1]: Started MySQL Server.

涔濄€佺櫥褰昅ySQL

鐧诲綍杩涘幓鏄病鏈夋潈闄愪换浣曟搷浣滅殑锛屽繀椤讳慨鏀瑰瘑鐮?/p>

鐧诲綍浠g爜 mysql -u root -p 鍥炶溅灏辫浣犺緭鍏ュ瘑鐮?/p>

[root@localhost mysql]# mysql -uroot -p
Enter password:       //杈撳叆瀵嗙爜

鎶€鏈浘鐗? src=

基于rhel7.2的mysql5.7.13安装与配置

RHEL7.3安装mysql5.7

rhel7安装mysql5.7

Linux rhel7 下MySQL5.7.18详细安装文档

Linux rhel7 下MySQL5.7怎么 详细安装文档

Linux rhel7 下MySQL5.7怎么 详细安装文档