国产 无码 综合区,色欲AV无码国产永久播放,无码天堂亚洲国产AV,国产日韩欧美女同一区二区

運(yùn)維筆記之centos7安裝mysql數(shù)據(jù)庫(kù)

這篇具有很好參考價(jià)值的文章主要介紹了運(yùn)維筆記之centos7安裝mysql數(shù)據(jù)庫(kù)。希望對(duì)大家有所幫助。如果存在錯(cuò)誤或未考慮完全的地方,請(qǐng)大家不吝賜教,您也可以點(diǎn)擊"舉報(bào)違法"按鈕提交疑問(wèn)。

安裝wget

[root@stem-mysql ~]# yum install wget -y


...
總下載量:547 k
安裝大?。?.0 M
Downloading packages:
wget-1.14-18.el7_6.1.x86_64.rpm                                                                                                                                  | 547 kB  00:00:00     
Running transaction check
Running transaction test
Transaction test succeeded
Running transaction
  正在安裝    : wget-1.14-18.el7_6.1.x86_64                                                                                                                                         1/1 
  驗(yàn)證中      : wget-1.14-18.el7_6.1.x86_64                                                                                                                                         1/1 

已安裝:
  wget.x86_64 0:1.14-18.el7_6.1 

下載官方rpm包

[root@stem-mysql ~]# cd /tmp/
[root@stem-mysql tmp]# wget https://dev.mysql.com/get/mysql57-community-release-el7-8.noarch.rpm

...
2023-12-14 07:52:47 (231 MB/s) - 已保存 “mysql57-community-release-el7-8.noarch.rpm” [9116/9116])

安裝依賴包

[root@stem-mysql tmp]# rpm -ivh mysql57-community-release-el7-8.noarch.rpm 
警告:mysql57-community-release-el7-8.noarch.rpm: 頭V3 DSA/SHA1 Signature, 密鑰 ID 5072e1f5: NOKEY
準(zhǔn)備中...                          ################################# [100%]
正在升級(jí)/安裝...
   1:mysql57-community-release-el7-8  ################################# [100%]

導(dǎo)入官方公鑰

如果使用的4.1以上版本的rpm的話,除了import mysql的公鑰到個(gè)人用戶的配置中,還需要import mysql的公鑰到RPM的配置中文章來(lái)源地址http://www.zghlxwxcb.cn/news/detail-765761.html

[root@stem-mysql tmp]# rpm --import https://repo.mysql.com/RPM-GPG-KEY-mysql-2022

安裝數(shù)據(jù)庫(kù)服務(wù)

[root@stem-mysql tmp]# yum -y install mysql-community-server

...
已安裝:
  mysql-community-libs.x86_64 0:5.7.44-1.el7                mysql-community-libs-compat.x86_64 0:5.7.44-1.el7                mysql-community-server.x86_64 0:5.7.44-1.el7               

作為依賴被安裝:
  mysql-community-client.x86_64 0:5.7.44-1.el7    mysql-community-common.x86_64 0:5.7.44-1.el7    net-tools.x86_64 0:2.0-0.25.20131004git.el7    perl.x86_64 4:5.16.3-299.el7_9        
  perl-Carp.noarch 0:1.26-244.el7                 perl-Encode.x86_64 0:2.51-7.el7                 perl-Exporter.noarch 0:5.68-3.el7              perl-File-Path.noarch 0:2.09-2.el7    
  perl-File-Temp.noarch 0:0.23.01-3.el7           perl-Filter.x86_64 0:1.49-3.el7                 perl-Getopt-Long.noarch 0:2.40-3.el7           perl-HTTP-Tiny.noarch 0:0.033-3.el7   
  perl-PathTools.x86_64 0:3.40-5.el7              perl-Pod-Escapes.noarch 1:1.04-299.el7_9        perl-Pod-Perldoc.noarch 0:3.20-4.el7           perl-Pod-Simple.noarch 1:3.28-4.el7   
  perl-Pod-Usage.noarch 0:1.63-3.el7              perl-Scalar-List-Utils.x86_64 0:1.27-248.el7    perl-Socket.x86_64 0:2.010-5.el7               perl-Storable.x86_64 0:2.45-3.el7     
  perl-Text-ParseWords.noarch 0:3.29-4.el7        perl-Time-HiRes.x86_64 4:1.9725-3.el7           perl-Time-Local.noarch 0:1.2300-2.el7          perl-constant.noarch 0:1.27-2.el7     
  perl-libs.x86_64 4:5.16.3-299.el7_9             perl-macros.x86_64 4:5.16.3-299.el7_9           perl-parent.noarch 1:0.225-244.el7             perl-podlators.noarch 0:2.5.1-3.el7   
  perl-threads.x86_64 0:1.87-4.el7                perl-threads-shared.x86_64 0:1.43-6.el7        

替代:
  mariadb-libs.x86_64 1:5.5.68-1.el7 

啟動(dòng)mysql

[root@stem-mysql tmp]# systemctl start mysqld

修改數(shù)據(jù)庫(kù)管理員密碼

[root@stem-mysql tmp]# grep 'temporary password' /var/log/mysqld.log
2023-12-14T00:01:07.587041Z 1 [Note] A temporary password is generated for root@localhost: *********

[root@stem-mysql tmp]#  mysql -uroot -p
Enter password: 
Welcome to the MySQL monitor.  Commands end with ; or \g.
Your MySQL connection id is 3
Server version: 5.7.44

Copyright (c) 2000, 2023, Oracle and/or its affiliates.

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 '**********'; 
Query OK, 0 rows affected (0.00 sec)

允許遠(yuǎn)程訪問(wèn)

[root@stem-mysql tmp]# mysql -uroot -p
Enter password: 
Welcome to the MySQL monitor.  Commands end with ; or \g.
Your MySQL connection id is 8
Server version: 5.7.44 MySQL Community Server (GPL)

Copyright (c) 2000, 2023, Oracle and/or its affiliates.

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> 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> select Host,User from user;
+-----------+---------------+
| Host      | User          |
+-----------+---------------+
| localhost | mysql.session |
| localhost | mysql.sys     |
| localhost | root          |
+-----------+---------------+
3 rows in set (0.00 sec)

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

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

設(shè)置防火墻

[root@stem-mysql tmp]# firewall-cmd --state
running
[root@stem-mysql tmp]# firewall-cmd --zone=public --list-ports

[root@stem-mysql tmp]# firewall-cmd --zone=public --add-port=3306/tcp --permanen
success
[root@stem-mysql tmp]# setenforce 0
[root@stem-mysql tmp]# firewall-cmd --reload
success

到了這里,關(guān)于運(yùn)維筆記之centos7安裝mysql數(shù)據(jù)庫(kù)的文章就介紹完了。如果您還想了解更多內(nèi)容,請(qǐng)?jiān)谟疑辖撬阉鱐OY模板網(wǎng)以前的文章或繼續(xù)瀏覽下面的相關(guān)文章,希望大家以后多多支持TOY模板網(wǎng)!

本文來(lái)自互聯(lián)網(wǎng)用戶投稿,該文觀點(diǎn)僅代表作者本人,不代表本站立場(chǎng)。本站僅提供信息存儲(chǔ)空間服務(wù),不擁有所有權(quán),不承擔(dān)相關(guān)法律責(zé)任。如若轉(zhuǎn)載,請(qǐng)注明出處: 如若內(nèi)容造成侵權(quán)/違法違規(guī)/事實(shí)不符,請(qǐng)點(diǎn)擊違法舉報(bào)進(jìn)行投訴反饋,一經(jīng)查實(shí),立即刪除!

領(lǐng)支付寶紅包贊助服務(wù)器費(fèi)用

相關(guān)文章

  • 圖數(shù)據(jù)庫(kù)_Neo4j中文版_Centos7.9安裝Neo4j社區(qū)版3.5.9_基于jdk1.8---Neo4j圖數(shù)據(jù)庫(kù)工作筆記0012

    圖數(shù)據(jù)庫(kù)_Neo4j中文版_Centos7.9安裝Neo4j社區(qū)版3.5.9_基于jdk1.8---Neo4j圖數(shù)據(jù)庫(kù)工作筆記0012

    ? ? 由于我們?cè)趪?guó)內(nèi)使用啊,具體還是要用中文版滴,找了好久這個(gè)neo4j,原來(lái)還是有中文版的, 中文版下載地址在這里: 所有版本都在這里了,需要哪個(gè)自己去下載就可以了,要注意下載以后,參考: ?在這個(gè)位置下載,主要是找到對(duì)應(yīng)中文版的安裝包,花了寫時(shí)間啊 然后我們看一下安裝

    2024年02月12日
    瀏覽(23)
  • Ladp數(shù)據(jù)庫(kù)安裝和配置自定義schema ,Centos7環(huán)境

    Ladp數(shù)據(jù)庫(kù)安裝和配置自定義schema ,Centos7環(huán)境

    最近安裝ldap看了不少教程,整理下用到的有用的資料,并把自己的搭建過(guò)程分享。 ldap介紹:openLDAP入門與安裝 官方文檔:https://www.openldap.org/doc/admin22/schema.html 安裝配置:Centos7 搭建openldap完整詳細(xì)教程(真實(shí)可用) bug解決:ldap運(yùn)維中遇到的問(wèn)題 schema自定義:導(dǎo)入schema到openL

    2024年02月12日
    瀏覽(28)
  • 磐維數(shù)據(jù)庫(kù)panweidb單節(jié)點(diǎn)服務(wù)器在centos7.9安裝(研發(fā)環(huán)境)

    磐維數(shù)據(jù)庫(kù)panweidb單節(jié)點(diǎn)服務(wù)器在centos7.9安裝(研發(fā)環(huán)境)

    使用omm用戶登錄到openGauss包安裝的主機(jī),解壓openGauss壓縮包到安裝目錄(假定安裝目錄為/opt/panweidb/soft,請(qǐng)用實(shí)際值替換)。 假定解壓包的路徑為/opt/panweidb/soft,進(jìn)入解壓后目錄下的simpleInstall。 執(zhí)行install.sh腳本安裝openGauss。 上述命令中,-w是指初始化數(shù)據(jù)庫(kù)密碼(gs_initdb指

    2024年02月06日
    瀏覽(40)
  • 初識(shí)mysql數(shù)據(jù)庫(kù)之mysql數(shù)據(jù)庫(kù)安裝(centos)

    初識(shí)mysql數(shù)據(jù)庫(kù)之mysql數(shù)據(jù)庫(kù)安裝(centos)

    目錄 一、卸載不需要的環(huán)境 二、安裝mysql yum源 三、安裝mysql 四、登錄mysql 1. 直接登錄 2. 設(shè)置免密碼登錄 五、配置my.cnf 六、mysql登錄時(shí)的一些選項(xiàng)介紹 要注意,在安裝mysql數(shù)據(jù)庫(kù)時(shí),最好將用戶切換為root,避免一些不必要的問(wèn)題。當(dāng)數(shù)據(jù)庫(kù)安裝好后,普通用戶也可以使用的

    2024年02月03日
    瀏覽(25)
  • 數(shù)據(jù)庫(kù)應(yīng)用:CentOS 7離線安裝MySQL與Nginx

    數(shù)據(jù)庫(kù)應(yīng)用:CentOS 7離線安裝MySQL與Nginx

    目錄 一、理論 1.安裝依賴 二、實(shí)驗(yàn) 1.離線安裝MySQL與Nginx 2.離線安裝Nginx 三、問(wèn)題 1.執(zhí)行nginx -v命令報(bào)錯(cuò) 四、總結(jié) (1)概念 安裝依賴是指在軟件開發(fā)中,為了運(yùn)行或者編譯一個(gè)程序或者庫(kù),在計(jì)算機(jī)上安裝與其相依賴并且需要使用的其它程序或者庫(kù)。根據(jù)查詢相關(guān)公開信息

    2024年02月16日
    瀏覽(23)
  • Influxdb數(shù)據(jù)庫(kù)(centos7)

    Influxdb數(shù)據(jù)庫(kù)(centos7)

    簡(jiǎn)介 InfluxDB是一個(gè)由InfluxData開發(fā)的開源時(shí)序型數(shù)據(jù)庫(kù),專注于海量時(shí)序數(shù)據(jù)的高性能讀、高性能寫、高效存儲(chǔ)與實(shí)時(shí)分析等,在DB-Engines Ranking時(shí)序型數(shù)據(jù)庫(kù)排行榜上排名第一: InfluxDB廣泛應(yīng)用于DevOps監(jiān)控、IoT監(jiān)控、實(shí)時(shí)分析等場(chǎng)景。除了具有成本優(yōu)勢(shì)的高性能讀、高性能寫、

    2024年02月12日
    瀏覽(24)
  • CentOS7自動(dòng)備份數(shù)據(jù)庫(kù)到git

    CentOS7自動(dòng)備份數(shù)據(jù)庫(kù)到git

    雖然數(shù)據(jù)庫(kù)沒(méi)什么數(shù)據(jù),但是有就是珍貴的啦,為了服務(wù)器什么的無(wú)了,所以還是要自動(dòng)備份一下比較好。 Open備忘第一頁(yè) 步驟 在Gitee(github)上創(chuàng)建一個(gè) 私有 倉(cāng)庫(kù) Gitee(github)配置好服務(wù)器的ssh 在服務(wù)器一個(gè)好位置克隆倉(cāng)庫(kù)下來(lái)剛剛創(chuàng)建的私有倉(cāng)庫(kù) 在服務(wù)器寫腳本 : 為

    2024年01月25日
    瀏覽(18)
  • [Linux][CentOs][Mysql]基于Linux-CentOs7.9系統(tǒng)安裝并配置開機(jī)自啟Mysql-8.0.28數(shù)據(jù)庫(kù)

    [Linux][CentOs][Mysql]基于Linux-CentOs7.9系統(tǒng)安裝并配置開機(jī)自啟Mysql-8.0.28數(shù)據(jù)庫(kù)

    目錄 一、準(zhǔn)備工作:獲取安裝包和相應(yīng)工具 (一)所需安裝包 (二)安裝包下載鏈接 (三)在服務(wù)器上創(chuàng)建文件夾并上傳安裝包 二、安裝MySql (一)刪除系統(tǒng)自帶的mariadb (二)安裝MySQL依賴包libaio (三)創(chuàng)建MySQL組和用戶并設(shè)置密碼 (四)將MySQL目錄的權(quán)限授給MySQL用戶

    2024年03月25日
    瀏覽(50)
  • MySQL數(shù)據(jù)庫(kù) --- 運(yùn)維篇

    MySQL數(shù)據(jù)庫(kù) --- 運(yùn)維篇

    錯(cuò)誤日志是 MySQL 中最重要的日志之一,它記錄了當(dāng) mysqld 啟動(dòng)和停止時(shí),以及服務(wù)器在運(yùn)行過(guò)程中發(fā)生任何嚴(yán)重錯(cuò)誤時(shí)的相關(guān)信息。當(dāng)數(shù)據(jù)庫(kù)出現(xiàn)任何故障導(dǎo)致無(wú)法正常使用時(shí),建議首先查看此日志。 該日志是默認(rèn)開啟的,默認(rèn)存放目錄 /var/log/,默認(rèn)的日志文件名為 mysqld

    2024年02月08日
    瀏覽(17)
  • 【運(yùn)維知識(shí)進(jìn)階篇】Zabbix5.0穩(wěn)定版詳解11(在Grafana中使用Zabbix插件:安裝Grafana+安裝Zabbix插件+添加數(shù)據(jù)源+Grafana直連MySQL數(shù)據(jù)庫(kù)取值)

    【運(yùn)維知識(shí)進(jìn)階篇】Zabbix5.0穩(wěn)定版詳解11(在Grafana中使用Zabbix插件:安裝Grafana+安裝Zabbix插件+添加數(shù)據(jù)源+Grafana直連MySQL數(shù)據(jù)庫(kù)取值)

    本篇文章給大家介紹在Grafana中使用Zabbix插件,Zabbix擴(kuò)展的很多,該講的基本上全講了,這篇文章結(jié)束后,就考慮換個(gè)內(nèi)容了。 Grafana是用于可視化大型測(cè)量數(shù)據(jù)的開源程序,類似于Kibana,我們?cè)诶锩媸褂脄abbix插件,可以實(shí)現(xiàn)對(duì)其他主機(jī)的監(jiān)控,監(jiān)控?cái)?shù)據(jù)能夠更好的顯示出來(lái)。

    2024年01月15日
    瀏覽(37)

覺(jué)得文章有用就打賞一下文章作者

支付寶掃一掃打賞

博客贊助

微信掃一掃打賞

請(qǐng)作者喝杯咖啡吧~博客贊助

支付寶掃一掃領(lǐng)取紅包,優(yōu)惠每天領(lǐng)

二維碼1

領(lǐng)取紅包

二維碼2

領(lǐng)紅包