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

mysql安裝教程linux

導讀mysql安裝首先使用yum安裝mysql數(shù)據(jù)庫的軟件包 ;然后啟動數(shù)據(jù)庫服務并運行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服務器Linux下客戶端 

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

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

[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  #是否刪除匿名用戶,生產(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  #是否重新加載權限表,直接回車

 ... 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í)行時,所有命令以;號結尾 

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

| Database | 

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

| information_schema | 

| mysql | 

| ucenter | 

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

3 rows in set (0.00 sec) 

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

總結:

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

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

3、運行mysql_secure_installation去除安全隱患

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

大家在看
為你推薦
資訊專欄
熱門視頻
相關推薦
mysql的root密碼忘記了怎么辦 手機充電發(fā)燙是什么原因 修改mysqlroot密碼 微信封號違規(guī)是什么原因 mysql5.7linux安裝教程 mysql用root密碼忘記了怎么辦 刪除微信零錢明細怎么恢復 mysql5.7修改root密碼 mysql包安裝教程 微信賬號風險評估在哪里看 mysql設置root密碼忘記了怎么辦 如何在ps中添加文字 linuxmysql修改root密碼 qq找公眾號在哪里找 mysql安裝教程5.5 忘記mysqlroot密碼怎么辦 電腦管理員名字怎么改win10 mysql修改root密碼5.7 linuxmysql安裝教程 黑名單打電話會提示什么 如何創(chuàng)建自己的網(wǎng)站 mysqlroot登陸密碼忘記了怎么辦 mysql安裝教程5.0 rhce官方培訓價格多少 mysql忘記了root用戶密碼怎么辦 如何打開dwf格式的文件 最新mysql安裝教程 cad制圖圖形界限怎么設置 忘記了mysqlroot密碼怎么辦 數(shù)據(jù)庫mysql安裝教程 mysql安裝教程視頻 mysql5.0安裝教程 rpm安裝命令用法 mysql修改root密碼 mysql忘記root密碼怎么辦 mysql安裝教程 find命令技巧 紅帽初中級認證考試費用 紅帽認證工程師考試費用 linux初級證書多少錢
Top 主站蜘蛛池模板: 国产精品三级在线观看 | 国产成人乱码一区二区三区在线 | 国产91在线 | 日本 | 国产午夜久久影院 | 欧美不卡一区 | 一本综合久久国产二区 | 日韩欧美视频一区二区 | 国产精品久久二区三区色裕 | 久久精品一区二区三区四区 | 国产精品最新 | 亚洲视频在线一区 | 欧洲日韩 | 欧美精品一区二区在线观看 | 一级毛片私人影院免费 | 亚洲码欧美码一区二区三区 | 国产在线视欧美亚综合 | 亚欧乱色视频网站大全 | 欧美干 | 日韩午夜免费电影 | 国产产一区二区三区久久毛片国语 | 亚欧国产 | 99久久精品国产一区二区小说 | 日本高清一二三区 | 日韩亚洲欧洲在线com91tv | 韩日一区二区三区 | 国产毛片一区二区三区精品 | 自拍偷拍免费 | 精品久久久久久久久中文字幕 | 日韩在线视频线视频免费网站 | 欧美首页| 国产欧美在线观看一区二区 | 日韩在线免费 | 国内精品一区二区三区αv 国产最新进精品视频 | 日韩视频免费 | 日韩国产欧美 | 免费精品国产日韩热久久 | 亚洲 欧美 中文 日韩欧美 | 在线观看色视频网站 | 亚洲第一网站在线观看 | 五十路中文字幕 | 精品国产一区二区三区香蕉 |