在线亚洲黄色-在线亚洲观看-在线亚洲电影-在线亚洲成人-岛国大片在线观看免费版-岛国大片在线播放高清

mysql的安裝教程

導讀mysql安裝首先使用yum安裝mysql數(shù)據(jù)庫的軟件包 ;然后啟動數(shù)據(jù)庫服務(wù)并運行mysql_secure_installation去除安全隱患,最后登錄數(shù)據(jù)庫,完成安裝。
視頻內(nèi)容

產(chǎn)品型號:Thinkpad E15

系統(tǒng)版本:centos7

軟件版本:mysql 5.7

mysql安裝教程

1.使用yum安裝mysql數(shù)據(jù)庫的軟件包 

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

注:  

mariadb-server  #MariaDB數(shù)據(jù)庫 

mariadb      # MariaDB服務(wù)器Linux下客戶端 

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

2.啟動數(shù)據(jù)庫服務(wù)

[root@xuegod63 ~]# systemctl start  mariadb #啟動MariaDB服務(wù)

[root@xuegod63 ~]# systemctl enable  mariadb #設(shè)置開啟自動啟動MariaDB服務(wù)

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 #是否設(shè)置root用戶密碼,輸入Y

New password: 123456  #新密碼123456

Re-enter new password: 123456

Password updated successfully!

。。。

Remove anonymous users? [Y/n] Y  #是否刪除匿名用戶,生產(chǎn)環(huán)境建議刪除,所以直接回車或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遠程登錄,根據(jù)自己的需求選擇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數(shù)據(jù)庫,直接回車或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  #是否重新加載權(quán)限表,直接回車

 ... 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!

至此數(shù)據(jù)庫安裝成功。

4. 登錄數(shù)據(jù)庫

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

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

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

| Database | 

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

| information_schema | 

| mysql | 

| ucenter | 

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

3 rows in set (0.00 sec) 

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

總結(jié):

1、使用yum安裝mysql數(shù)據(jù)庫的軟件包 

2、啟動數(shù)據(jù)庫服務(wù)

3、運行mysql_secure_installation去除安全隱患

4、登錄數(shù)據(jù)庫

大家在看
為你推薦
資訊專欄
熱門視頻
相關(guān)推薦
設(shè)黑名單打電話時有什么提示 linuxmysql改root密碼忘記了怎么辦 如何下載mp3歌曲到u盤 mysql修改root密碼linux 怎么關(guān)掉360瀏覽器的廣告 三星手機怎么截屏視頻教程 英雄聯(lián)盟截圖保存在哪 centos7安裝mysql教程 ps怎么給一張圖片邊緣做羽化 win10cf頁面不能全屏 mysqlroot登錄密碼忘記了怎么辦 cf閃退怎么解決win10 mysql如何修改root密碼 win10系統(tǒng)怎么設(shè)置煙霧頭 360瀏覽器右下角的廣告怎么屏蔽 如何將word里的批注全部刪除 鋼筋等級特殊符號怎么打 英雄聯(lián)盟f12截圖保存在哪 chrome瀏覽器打不開網(wǎng)頁 ps怎么給圖片邊緣羽化 三星手機怎么快速截屏快捷鍵 windows10如何更改管理員名稱 怎么在電腦上下載歌曲到u盤上 如何用ps在圖片上添加文字 電話拉黑名單打電話是什么提示 微信賬號風險評估在哪里怎么弄 如何用ps添加文字 微信在哪里看賬號風險評估 微信里面的零錢明細刪除后怎么恢復 微信把零錢明細刪除了怎么恢復 是什么原因?qū)е挛⑿欧馓柕?/a> 微信封號可能是什么原因造成的 手機充電的時候發(fā)熱是怎么回事 手機充電時會發(fā)熱是怎么回事 cad制圖怎么設(shè)置圖形界限 怎么創(chuàng)建一個自己的網(wǎng)站 如何讓多個EXCEL顯示獨立窗口 怎么打開dwf文件 word中如何去掉文字下面的波浪線 電腦谷歌瀏覽器打不開網(wǎng)頁怎么回事
Top 主站蜘蛛池模板: 一区二区精品 | 在线观着免费观看国产黄 | 2022国产精品福利在线观看 | 伊人久久婷婷 | 国产欧美在线观看精品一区二区 | 国产精品久久久久久久9999 | 欧美亚洲国产日韩一区二区三区 | 免费一级a毛片在线播放直播 | 欧美成人视屏 | 视频一区久久 | 亚洲欧美偷拍另类 | 大色欧美 | 中文字幕第一区 | 精品视频一区二区三区四区五区 | 亚洲精品午夜国产va久久成人 | 一区二区三区美女 | 国产中文在线观看 | 国产伊人久久 | 欧美色人阁 | 中文字幕在线播放第一页 | 久久久久久91 | 国产在线观看第一页 | 在线播放国产精品 | 毛片资源 | 欧美精品一区二区三区视频 | 欧美日韩国产一区二区 | 亚洲一区色图 | 中文在线第一页 | 国产精品免费观看网站 | 日韩在线精品视频 | 黄网站在线观看 | 精品一区二区久久久久久久网精 | 国产成人综合久久综合 | 日韩精品在线第一页 | 日韩欧美精品 | 国产一区二三区 | 亚洲色图第1页 | 精品国产欧美一区二区三区成人 | 国产黄色在线看 | 国产免费一区二区三区免费视频 | 久久精品国产亚洲aa |