MySQL的安全問(wèn)題從安裝開(kāi)始說(shuō)起
[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
**對(duì)于這 2 種方式、我個(gè)人認(rèn)為、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.
**我覺(jué)得、這里的關(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)境請(qǐng)務(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!
- 新安裝的MySQL數(shù)據(jù)庫(kù)需要注意的安全知識(shí)
- MySQL安全設(shè)置圖文教程
- MySQL數(shù)據(jù)庫(kù)安全配置介紹
- Win2003服務(wù)器安裝及設(shè)置教程 MySQL安全設(shè)置圖文教程
- MySQL數(shù)據(jù)庫(kù)安全設(shè)置與注意事項(xiàng)小結(jié)
- MySQL數(shù)據(jù)庫(kù)安全之防止撰改的方法
- MySQL數(shù)據(jù)庫(kù)中的安全設(shè)置方案
- 淺析MySQL的注入安全問(wèn)題
- Ubuntu上安裝MySQL+問(wèn)題處理+安全優(yōu)化
- 關(guān)于加強(qiáng)MYSQL安全的幾點(diǎn)建議
- MySQL安全策略(MySQL安全注意事項(xiàng))
相關(guān)文章
Mysql樹形結(jié)構(gòu)的數(shù)據(jù)庫(kù)表設(shè)計(jì)方案
樹形結(jié)構(gòu)對(duì)大家來(lái)說(shuō)應(yīng)該都不陌生,在日常開(kāi)發(fā)中經(jīng)常會(huì)遇到,下面這篇文章主要給大家介紹了關(guān)于Mysql樹形結(jié)構(gòu)的數(shù)據(jù)庫(kù)表設(shè)計(jì)的相關(guān)資料,文中通過(guò)示例代碼的非常詳細(xì),需要的朋友可以參考下2021-09-09windows下MySQL免安裝版配置教程mysql-5.6.51-winx64.zip版本(最新安裝教程)
這篇文章主要介紹了windows下MySQL免安裝版配置教程mysql-5.6.51-winx64.zip版本(最新安裝教程),本文通過(guò)圖文并茂的形式給大家介紹的非常詳細(xì),對(duì)大家的學(xué)習(xí)或工作具有一定的參考借鑒價(jià)值,需要的朋友可以參考下2023-01-01Mysql、Oracle中常用的多表修改語(yǔ)句總結(jié)
這篇文章主要給大家介紹了關(guān)于Mysql、Oracle中常用的多表修改語(yǔ)句的相關(guān)資料,文中通過(guò)示例代碼介紹的非常詳細(xì),對(duì)大家的學(xué)習(xí)或者工作具有一定的參考學(xué)習(xí)價(jià)值,需要的朋友們下面隨著小編來(lái)一起學(xué)習(xí)學(xué)習(xí)吧2020-12-12