日韩性视频-久久久蜜桃-www中文字幕-在线中文字幕av-亚洲欧美一区二区三区四区-撸久久-香蕉视频一区-久久无码精品丰满人妻-国产高潮av-激情福利社-日韩av网址大全-国产精品久久999-日本五十路在线-性欧美在线-久久99精品波多结衣一区-男女午夜免费视频-黑人极品ⅴideos精品欧美棵-人人妻人人澡人人爽精品欧美一区-日韩一区在线看-欧美a级在线免费观看

歡迎訪問 生活随笔!

生活随笔

當前位置: 首頁 > 运维知识 > 数据库 >内容正文

数据库

Centos6.7系统环境下使用 yum install 安装mysql-community-5.7.22(史上最简)

發(fā)布時間:2025/3/15 数据库 35 豆豆
生活随笔 收集整理的這篇文章主要介紹了 Centos6.7系统环境下使用 yum install 安装mysql-community-5.7.22(史上最简) 小編覺得挺不錯的,現(xiàn)在分享給大家,幫大家做個參考.

在運維或者開發(fā)過程中,經常會遇見部署各類LNMP或者LAMP模式的系統(tǒng)運行架構,尤其再部署數據庫時,往往有人對數據庫使用過程倒是很多,但從頭部署的情況少有發(fā)生,今天推薦一種簡單的mysql安裝操作:這簡單是真正的簡單

?

簡單的解決方案:

?

1、yum源安裝
#yum install #下載及安裝yum源 #yum clean all #清理yum #yum makecache #重新緩存 #yum install mysql-community-server #yum安裝 就這么簡單
2、開啟服務
#/etc/init.d/mysqld
3、查找初始密碼并修改
#grep 'temporary password' /var/log/mysqld.log #唯一不同的就是此處,安裝完成后會有一個初始密碼放置到log中,進行初始登錄 # grep 'temporary password' /var/log/mysqld.log 2018-07-27T11:00:07.016171Z 1 [Note] A temporary password is generated for root@localhost: xxxxx # 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.22 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> show databases; ERROR 1820 (HY000): You must reset your password using ALTER USER statement before executing this statement. mysql> set password=password('test123'); #密碼復雜度要求。 ERROR 1819 (HY000): Your password does not satisfy the current policy requirements #復雜度提高后成功。 mysql> set password=password('Test@!234'); Query OK, 0 rows affected, 1 warning (0.00 sec)

4、yum安裝過程中的會出現(xiàn)依賴程序問題,只需要先安裝一下依賴即可

#yum install mysql-devel

通過以上簡單安裝步驟即可完成一鍵部署操作(需要整理方可成一鍵)

?

在運維或者開發(fā)過程中,經常會遇見部署各類LNMP或者LAMP模式的系統(tǒng)運行架構,尤其再部署數據庫時,往往有人對數據庫使用過程倒是很多,但從頭部署的情況少有發(fā)生,今天推薦一種簡單的mysql安裝操作:這簡單是真正的簡單

簡單的解決方案:

1、yum源安裝
1 2 3 4 #yum?install???#下載及安裝yum源? #yum?clean?all????????????????????????????#清理yum #yum?makecache????????????????????????????#重新緩存 #yum?install?mysql-community-server???????#yum安裝?就這么簡單
2、開啟服務
1 #/etc/init.d/mysqld
4、查找初始密碼并修改

?

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 #grep?'temporary?password'?/var/log/mysqld.log???#唯一不同的就是此處,安裝完成后會有一個初始密碼放置到log中,進行初始登錄 #?grep?'temporary?password'?/var/log/mysqld.log 2018-07-27T11:00:07.016171Z?1?[Note]?A?temporary?password?is?generated?for?root@localhost:?xxxxx #?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.22 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>?show?databases; ERROR?1820?(HY000):?You?must?reset?your?password?using?ALTER?USER?statement?before?executing?this?statement. mysql>?set?password=password('test123'); #密碼復雜度要求。 ERROR?1819?(HY000):?Your?password?does?not?satisfy?the?current?policy?requirements #復雜度提高后成功。 mysql>?set?password=password('Test@!234'); Query?OK,?0?rows?affected,?1?warning?(0.00?sec)

?

?

轉載于:https://www.cnblogs.com/zksfyz/p/9435041.html

總結

以上是生活随笔為你收集整理的Centos6.7系统环境下使用 yum install 安装mysql-community-5.7.22(史上最简)的全部內容,希望文章能夠幫你解決所遇到的問題。

如果覺得生活随笔網站內容還不錯,歡迎將生活随笔推薦給好友。