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

mysql數(shù)據(jù)庫(kù)安裝教程

導(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ù)

大家在看
為你推薦
資訊專欄
熱門(mén)視頻
相關(guān)推薦
安裝mysql教程視頻 mysqlroot原始密碼忘記了怎么辦 改mysql的root密碼忘記了怎么辦 mysql怎么修改root密碼 如何修改mysql數(shù)據(jù)庫(kù)root密碼 微信封號(hào)的原因是什么 mysqlroot密碼忘記了怎么辦 linux安裝rpm命令用法 如何電腦上下載歌曲到u盤(pán) mysql詳細(xì)安裝教程 mysql下載安裝教程 mysql改root密碼忘記了怎么辦 紅帽認(rèn)證rhce多少錢(qián) 怎么修改mysqlroot密碼 怎么關(guān)閉360瀏覽器右下角廣告 windows10煙霧頭怎么調(diào) 英雄聯(lián)盟截圖在哪里看 微信封號(hào)一般是什么原因 微信零錢(qián)明細(xì)刪除過(guò)后怎么恢復(fù) ps怎么對(duì)圖片邊緣進(jìn)行羽化 下載歌曲到u盤(pán)怎么弄 mysql命令修改root密碼 三星的手機(jī)怎樣截屏 mysql忘記root密碼了怎么辦 如何在電腦上下載歌曲到u盤(pán) centosmysql安裝教程 mysql密碼root密碼忘記了怎么辦 黑名單打電話會(huì)提示什么 linuxmysql安裝教程 mysql修改root密碼5.7 電腦管理員名字怎么改win10 忘記mysqlroot密碼怎么辦 mysql安裝教程5.5 qq找公眾號(hào)在哪里找 linuxmysql修改root密碼 如何在ps中添加文字 mysql設(shè)置root密碼忘記了怎么辦 微信賬號(hào)風(fēng)險(xiǎn)評(píng)估在哪里看 mysql包安裝教程 mysql5.7修改root密碼
Top 主站蜘蛛池模板: 高清国产精品久久 | 亚洲青草 | 亚洲国产精品婷婷久久久久 | 91精品导航| 国产一区二区三区欧美 | 日本色图在线观看 | 欧美伦禁片在线播放 | 黄色小视频免费在线观看 | 亚洲精品社区 | 欧美日韩三区 | 色综合天天娱乐综合网 | 美女视频黄a视频免费全过程在线 | 欧美精品一区二区三区免费观看 | 国产一级高清免费观看 | 精品国产高清a毛片无毒不卡 | 91成人爽a毛片一区二区 | 久久久久久久久国产 | 在线观看视频日韩 | 欧美中出在线 | 成人一a毛片免费视频 | 中文字幕另类 | 日韩欧美在线综合 | 一区二区视频在线 | 亚洲欧美一区二区三区九九九 | 卡通动漫第一页 | 国产日韩欧美第一页 | 欧美区一区二区三 | 可播放的免费男男videos不卡 | 亚洲精品国产成人99久久 | 99国产视频 | 日韩欧美91 | 国产精品久久久久久久y | 91久久精品国产一区二区 | 亚洲视频网站在线观看 | 国产一区在线免费观看 | 日本a级片在线观看 | 在线视频三区 | 国产在线视频资源 | 亚洲人成一区 | 日韩精品第一页 | 亚洲精品毛片久久久久久久 |