最新文章專題視頻專題關鍵字專題1關鍵字專題50關鍵字專題500關鍵字專題1500TAG最新視頻文章視頻文章20視頻文章30視頻文章40視頻文章50視頻文章60 視頻文章70視頻文章80視頻文章90視頻文章100視頻文章120視頻文章140 視頻2關鍵字專題關鍵字專題tag2tag3文章專題文章專題2文章索引1文章索引2文章索引3文章索引4文章索引5123456789101112131415文章專題3
mysql忘記root密碼怎么辦 mysql修改root密碼 rpm安裝命令用法 mysql5.0安裝教程 mysql安裝教程視頻 數據庫mysql安裝教程 忘記了mysqlroot密碼怎么辦 cad制圖圖形界限怎么設置 最新mysql安裝教程 如何打開dwf格式的文件 mysql忘記了root用戶密碼怎么辦 rhce官方培訓價格多少 mysql安裝教程5.0 mysqlroot登陸密碼忘記了怎么辦 如何創建自己的網站 mysql安裝教程linux mysql的root密碼忘記了怎么辦 手機充電發燙是什么原因 修改mysqlroot密碼 微信封號違規是什么原因 find命令技巧 紅帽初中級認證考試費用 紅帽認證工程師考試費用 linux初級證書多少錢 紅帽linux認證費用 紅帽初級認證考試費用 redhat證書考試多少錢 紅帽認證考試多少錢 紅帽認證多少錢 linux認證多少錢 linux認證考試多少錢 紅帽中級考試費用 紅帽認證考試費用2020 redhat認證考試費用 紅帽認證rhce考試費用 linux認證考試費用 rhce認證費用 rhce培訓費 紅帽認證報名費多少錢 紅帽rhce考試費用
當前位置: 首頁 - 科技 - 知識百科 - 正文

mysql安裝教程

來源:懂視網 責編:小OO 時間:2022-03-23 20:06:23
文檔

mysql安裝教程

mysql安裝需要先使用yum安裝mysql數據庫的軟件包 ;然后啟動數據庫服務并運行mysql_secure_installation去除安全隱患,最后登錄數據庫,便可完成安裝。
推薦度:
導讀mysql安裝需要先使用yum安裝mysql數據庫的軟件包 ;然后啟動數據庫服務并運行mysql_secure_installation去除安全隱患,最后登錄數據庫,便可完成安裝。

視頻內容

產品型號:Thinkpad E15

系統版本:centos7

軟件版本:mysql 5.7

mysql安裝教程

1.使用yum安裝mysql數據庫的軟件包 

[root@xuegod63 ~]# yum -y install mariadb-server mariadb 

注:  

mariadb-server  #MariaDB數據庫 

mariadb      # MariaDB服務器Linux下客戶端 

注:從centos7系統開始,系統中自帶的mysql數據庫變成了mariadb-server,mariadb-server和mysql操作上一樣。mariadb-server是mysql的一個分支。

2.啟動數據庫服務

[root@xuegod63 ~]# systemctl start  mariadb #啟動MariaDB服務

[root@xuegod63 ~]# systemctl enable  mariadb #設置開啟自動啟動MariaDB服務

3. 安裝完mariadb-server后,運行mysql_secure_installation去除安全隱患

[root@xuegod63 ~]# mysql_secure_installation #進入安全配置導向

NOTE: RUNNING ALL PARTS OF THIS SCRIPT IS RECOMMENDED FOR ALL MySQL

SERVERS IN PRODUCTION USE! PLEASE READ EACH STEP CAREFULLY!

In order to log into MySQL to secure it, we'll need the current

password for the root user. If you've just installed MySQL, and

you haven't set the root password yet, the password will be blank,

so you should just press enter here.

Enter current password for root (enter for none):  #初次運行直接回車,因為root用戶沒有密碼

OK, successfully used password, moving on…

Setting the root password ensures that nobody can log into the MySQL

root user without the proper authorisation.

Set root password? [Y/n] Y #是否設置root用戶密碼,輸入Y

New password: 123456  #新密碼123456

Re-enter new password: 123456

Password updated successfully!

。。。

Remove anonymous users? [Y/n] Y  #是否刪除匿名用戶,生產環境建議刪除,所以直接回車或Y

 ... Success!

Normally, root should only be allowed to connect from 'localhost'.  This

ensures that someone cannot guess at the root password from the network.

Disallow root login remotely? [Y/n] Y #是否禁止root遠程登錄,根據自己的需求選擇Y/n并回車,建議禁止

 ... Success!

By default, MariaDB comes with a database named 'test' that anyone can

access.  This is also intended only for testing, and should be removed

before moving into a production environment.

Remove test database and access to it? [Y/n] Y  #是否刪除test數據庫,直接回車或Y

 - Dropping test database...

 ... Success!

 - Removing privileges on test database...

 ... Success!

Reloading the privilege tables will ensure that all changes made so far

will take effect immediately.

Reload privilege tables now? [Y/n] Y  #是否重新加載權限表,直接回車

 ... Success!

Cleaning up...

All done!  If you've completed all of the above steps, your MariaDB

installation should now be secure.

Thanks for using MariaDB!

… Success!

至此數據庫安裝成功。

4. 登錄數據庫

[root@xuegod63 ~]# mysql -u root -p123456 

MariaDB [(none)]> show databases;    #沒有test數據庫 #執行時,所有命令以;號結尾 

+-------------------------+ 

| Database

+-------------------------+ 

| information_schema

| mysql

| ucenter

+-------------------------+ 

3 rows in set (0.00 sec) 

MariaDB [(none)]> exit #退出命令可以加分號,也可以不加分號。

總結:

1、使用yum安裝mysql數據庫的軟件包 

2、啟動數據庫服務

3、運行mysql_secure_installation去除安全隱患

4、登錄數據庫

聲明:本網頁內容旨在傳播知識,若有侵權等問題請及時與本網聯系,我們將在第一時間刪除處理。TEL:0731-84117792 E-MAIL:11247931@qq.com

文檔

mysql安裝教程

mysql安裝需要先使用yum安裝mysql數據庫的軟件包 ;然后啟動數據庫服務并運行mysql_secure_installation去除安全隱患,最后登錄數據庫,便可完成安裝。
推薦度:
標簽: 安裝 教程 mysql
  • 熱門焦點

最新推薦

猜你喜歡

熱門推薦

專題mysql忘記root密碼怎么辦mysql忘記root密碼怎么辦專題mysql修改root密碼mysql修改root密碼專題rpm安裝命令用法rpm安裝命令用法專題軟文怎么發軟文怎么發專題如何寫軟文如何寫軟文專題活動軟文怎么寫活動軟文怎么寫專題rhca培訓多少錢rhca培訓多少錢專題rhcsa培訓多少錢rhcsa培訓多少錢專題linux分區方法linux分區方法專題linux磁盤分區方法linux磁盤分區方法專題apache安裝方法apache安裝方法專題apache和nginx的區別apache和nginx的區別專題docker命令教程docker命令教程專題 linux安裝nginx方法 linux安裝nginx方法專題nginx反向代理配置nginx反向代理配置專題nginx負載均衡策略nginx負載均衡策略專題nginx負載均衡配置nginx負載均衡配置專題nginx配置文件詳解nginx配置文件詳解專題nginx是什么nginx是什么專題nginx重啟方法nginx重啟方法專題安裝docker步驟安裝docker步驟專題安裝docker教程安裝docker教程專題docker進入容器的命令docker進入容器的命令專題docker鏡像制作方法docker鏡像制作方法專題docker刪除鏡像的方法docker刪除鏡像的方法專題docker刪除容器的方法docker刪除容器的方法專題啟動docker命令啟動docker命令專題重啟docker的方法重啟docker的方法專題怎么使用vlookup函數匹配怎么使用vlookup函數匹配專題喜馬拉雅下載的音頻怎么變成mp3喜馬拉雅下載的音頻怎么變成mp3專題mysql 存儲過程"專題穆醫生輕點撩專題秘語十七小時專題明元說潛意識專題明玉死前遺產給石天冬專題mysql安裝教程超詳細專題mysql數據庫可以通過json存儲嗎專題mysqlmsi安裝 1045專題mysqlxccxf5xbcxfe專題mysql觸發器before和after的區別專題mysql字符串怎么完全正則匹配,用regexp專題mysql 替換字段內容專題魔域神曲之魔域來了h5專題mysql安裝教程8022專題mysql安裝教程8.0.27專題mysql安裝教程8.0.29專題mysql安裝教程8.0.28專題mysql關聯查詢專題mysql官方網站專題蘇州mysql教學視頻專題
Top
国产精品久久久久精品…-国产精品可乐视频最新-亚洲欧美重口味在线-欧美va免费在线观看