最新国产好看的视频,伊人天堂AV在线,国产Aaaaaa视频,蜜臀视频在线观看一区,人妻av色图,密臀久久久精品影片,青青视频免费观看毛片,久草在线观看视,国产三级精品色情在线

MySQL的安全問題從安裝開始說起

 更新時間:2013年04月10日 17:46:39   作者:  
本篇文章小編為大家介紹,關(guān)于MySQL的安全問題從安裝開始說起,有需要的朋友可以參考一下
當(dāng)你安裝 MySQL 完后、會有個提示:

[root@localhost Desktop]# rpm -ivh MySQL-server-5.5.28-1.rhel5.i386.rpm
Preparing... ########################################### [100%]
1:MySQL-server ########################################### [100%]


PLEASE REMEMBER TO SET A PASSWORD FOR THE MySQL root USER !
To do so, start the server, then issue the following commands:

/usr/bin/mysqladmin -u root password 'new-password'
/usr/bin/mysqladmin -u root -h localhost.localdomain password 'new-password'


Alternatively you can run:

/usr/bin/mysql_secure_installation

**對于這 2 種方式、我個人認為、mysql_secure_installation 比較好用***

which will also give you the option of removing the test
databases and anonymous user created by default
. This is
strongly recommended for production servers.


**我覺得、這里的關(guān)鍵應(yīng)該是能夠把匿名用戶給刪掉***
See the manual for more instructions.

Please report any problems with the /usr/bin/mysqlbug script!


By default, a MySQL installation has an anonymous user, allowing anyone
to log into MySQL without having to have a user account created for

them. This is intended only for testing, and to make the installationgo a bit smoother.

You should remove them before moving into a production environment

**匿名用戶的危害****

所以、生產(chǎn)環(huán)境請務(wù)必刪之??!


我選擇 mysql_secure_installation


[root@localhost Desktop]# 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):
OK, successfully used password, moving on...


Setting the root password ensures that nobody can log into the MySQL
root user without the proper authorisation.

You already have a root password set, so you can safely answer 'n'.

Change the root password? [Y/n] n
... skipping.

By default, a MySQL installation has an anonymous user, allowing anyone
to log into MySQL without having to have a user account created for
them. This is intended only for testing, and to make the installation
go a bit smoother. You should remove them before moving into a
production environment.

Remove anonymous users? [Y/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] n
... skipping.

By default, MySQL 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] n
... skipping.


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 MySQL
installation should now be secure.

Thanks for using MySQL!

相關(guān)文章

  • Unity連接MySQL并讀取表格數(shù)據(jù)的實現(xiàn)代碼

    Unity連接MySQL并讀取表格數(shù)據(jù)的實現(xiàn)代碼

    本文給大家介紹Unity連接MySQL并讀取表格數(shù)據(jù)的實現(xiàn)代碼,實例化的同時調(diào)用MySqlConnection,傳入?yún)?shù),這里的傳入?yún)?shù)個人認為是CMD里面的直接輸入了,string格式直接類似手敲到cmd里面,完整代碼參考下本文
    2021-06-06
  • mysql Community Server 5.7.19安裝指南(詳細)

    mysql Community Server 5.7.19安裝指南(詳細)

    這篇文章主要介紹了mysql Community Server 5.7.19安裝指南(詳細),需要的朋友可以參考下
    2017-10-10
  • MySQL 中 DATE / DATETIME / TIMESTAMP 的區(qū)別小結(jié)

    MySQL 中 DATE / DATETIME / TIME

    在 MySQL 中,DATE、DATETIME、TIMESTAMP 都用來表示時間,但語義、存儲方式以及對時區(qū)的處理完全不同,本文就來詳細的介紹一下這三種的用法,感興趣的可以了解一下
    2026-02-02
  • Ubuntu上安裝MySQL+問題處理+安全優(yōu)化

    Ubuntu上安裝MySQL+問題處理+安全優(yōu)化

    這篇文章主要匯總介紹了Ubuntu上安裝MySQL+問題處理+安全優(yōu)化的相關(guān)事項,非常的細致全面,有需要的小伙伴可以參考下
    2016-03-03
  • mysql如何查找連續(xù)出現(xiàn)n次以上的數(shù)

    mysql如何查找連續(xù)出現(xiàn)n次以上的數(shù)

    這篇文章主要介紹了mysql如何查找連續(xù)出現(xiàn)n次以上的數(shù),具有很好的參考價值,希望對大家有所幫助。如有錯誤或未考慮完全的地方,望不吝賜教
    2022-05-05
  • MySQL8.0移除傳統(tǒng)的.frm文件原因及解讀

    MySQL8.0移除傳統(tǒng)的.frm文件原因及解讀

    MySQL 8.0移除傳統(tǒng)的.frm文件,采用基于InnoDB的事務(wù)型數(shù)據(jù)字典,主要解決了元數(shù)據(jù)不一致、性能優(yōu)化、架構(gòu)簡化、增強功能支持、兼容性與升級問題,這一變革提高了數(shù)據(jù)庫的可靠性和性能,為未來的高級功能奠定了基礎(chǔ)
    2025-03-03
  • mysql批量執(zhí)行sql文件的方法

    mysql批量執(zhí)行sql文件的方法

    下面小編就為大家?guī)硪黄猰ysql批量執(zhí)行sql文件的方法。小編覺得挺不錯的,現(xiàn)在就分享給大家,也給大家做個參考。一起跟隨小編 過來看看吧
    2016-10-10
  • MySQL中配置文件my.cnf因權(quán)限問題導(dǎo)致無法啟動的解決方法

    MySQL中配置文件my.cnf因權(quán)限問題導(dǎo)致無法啟動的解決方法

    這篇文章主要給大家介紹了關(guān)于MySQL中配置文件my.cnf因權(quán)限問題導(dǎo)致無法啟動的解決方法,該無法啟動的錯誤提示代碼是:World-writable config file '/etc/my.cnf' is ignored,文中給出了詳細的解決方法,需要的朋友們下面來一起看看吧。
    2017-06-06
  • MySQL存儲過程的權(quán)限問題小結(jié)

    MySQL存儲過程的權(quán)限問題小結(jié)

    這篇文章主要介紹了MySQL存儲過程的權(quán)限問題小結(jié)及mysql 創(chuàng)建存儲過程權(quán)限問題,感興趣的朋友一起看看吧
    2018-04-04
  • 詳解MySQL存儲過程的創(chuàng)建和調(diào)用

    詳解MySQL存儲過程的創(chuàng)建和調(diào)用

    這篇文章主要為大家介紹了MySQL存儲過程的創(chuàng)建和調(diào)用,具有一定的參考價值,感興趣的小伙伴們可以參考一下,希望能夠給你帶來幫助
    2021-12-12

最新評論

九江县| 墨玉县| 石楼县| 新营市| 广元市| 浙江省| 三穗县| 子洲县| 河津市| 庆云县| 襄樊市| 新余市| 嵊泗县| 句容市| 新昌县| 广州市| 溧阳市| 河北区| 苍梧县| 商都县| 屏山县| 阿尔山市| 陈巴尔虎旗| 筠连县| 连云港市| 班玛县| 益阳市| 格尔木市| 灵山县| 内江市| 房产| 桑日县| 靖安县| 蓬安县| 晋江市| 溆浦县| 大庆市| 清新县| 万年县| 聂拉木县| 克东县|