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

mysql安裝配置教程

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

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

系統(tǒng)版本:centos7

軟件版本:mysql 5.7

mysql安裝教程

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

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

注:  

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

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

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

2.啟動(dòng)數(shù)據(jù)庫(kù)服務(wù)

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

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

3. 安裝完mariadb-server后,運(yùn)行mysql_secure_installation去除安全隱患

[root@xuegod63 ~]# mysql_secure_installation #進(jìn)入安全配置導(dǎo)向

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):  #初次運(yùn)行直接回車,因?yàn)閞oot用戶沒(méi)有密碼

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遠(yuǎn)程登錄,根據(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ù)庫(kù),直接回車或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ù)庫(kù)安裝成功。

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

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

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

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

| Database | 

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

| information_schema | 

| mysql | 

| ucenter | 

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

3 rows in set (0.00 sec) 

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

總結(jié):

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

2、啟動(dòng)數(shù)據(jù)庫(kù)服務(wù)

3、運(yùn)行mysql_secure_installation去除安全隱患

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

大家在看
為你推薦
資訊專欄
熱門視頻
相關(guān)推薦
微信封號(hào)是什么原因?qū)е碌?/a> 右下角360瀏覽器推薦廣告怎么關(guān)閉 被刪除的微信零錢明細(xì)怎么恢復(fù) 英雄聯(lián)盟截圖保存在哪里 修改微信賬號(hào)風(fēng)險(xiǎn)評(píng)估是什么意思 ps圖片中如何添加文字 怎么用ps把圖片邊緣羽化 cf全屏怎么設(shè)置 win10玩cf閃退如何解決辦法 電話被拉黑名單后打電話提示什么 win10怎么調(diào)煙霧頭 電腦上如何把歌曲下載到u盤 三星手機(jī)的截屏功能在哪里 word里面的批注如何全部刪除 mysql5安裝教程 excel撤銷工作表保護(hù)密碼忘記了怎么辦 mysql設(shè)root密碼忘記了怎么辦 怎么修改mysql的root密碼 word里怎么打鋼筋等級(jí)符號(hào) 怎么關(guān)閉右下角360瀏覽器廣告 手機(jī)充電時(shí)候發(fā)熱是怎么回事 mysql修改root用戶密碼 excel如何讓多個(gè)窗口獨(dú)立顯示 mysqlroot改密碼忘記了怎么辦 word文字底下有波浪線怎么去掉 mysql安裝包安裝教程 怎么打鋼筋等級(jí)符號(hào) 怎么截屏手機(jī)三星 word文檔如何刪除全部批注 w10cf怎么調(diào)煙霧頭 電腦里的歌曲怎么下載到u盤 win10穿越火線怎么調(diào)全屏 ps怎么羽化一下圖片邊緣 把對(duì)方加入黑名單打電話提示什么 win10怎么更換管理員名字 360瀏覽器右下角自帶廣告怎么關(guān)閉 修改mysql的root密碼 qq公眾號(hào)在哪里找手機(jī) 怎么mysqlroot密碼忘記了怎么辦 ps如何在圖片上添加文字
Top 主站蜘蛛池模板: 久久中文网 | 国产免费高清视频在线观看不卡 | 国产在线精品99一卡2卡 | 亚洲色图日韩精品 | 精品国产高清自在线一区二区三区 | 中文字幕有码在线播放 | 日本特级淫片免费看 | 中国一级全黄的免费观看 | 欧美综合自拍亚洲综合百度 | 91精品国产亚一区二区三区 | 国产麻豆流白浆在线观看 | 欧美视频一区二区三区 | 亚洲一二三区视频 | 视频国产精品 | 国产成人综合久久 | 精品综合 | 殴美aⅴ| 在线观看国产一区 | 亚洲欧美日韩另类精品一区二区三区 | 亚洲码欧美码一区二区三区 | 国产a网站 | 不卡日本| 国产高清精品一级毛片 | 免费一级a毛片在线播放视 免费一区二区 | a男人的天堂久久a毛片 | 亚洲精品123区 | 免费的一级毛片 | 亚洲人成网站999久久久综合 | 亚洲欧洲精品成人久久曰 | 在线观看日韩视频 | 日韩欧美精品一区二区 | 亚洲国产精品一区二区九九 | 91社区在线观看精品 | 激情欧美日韩一区二区 | 欧美日韩一二 | 国产精品亚洲精品不卡 | 欧美va免费精品高清在线 | 亚洲欧美韩日 | 国产成人在线观看免费网站 | 亚洲素人在线 | 日本一区二区三区精品视频 |