MYSQL教程MySQL的安全问题从安装开始说起

MYSQL教程MySQL的安全问题从安装开始说起,第1张

概述介绍《MYSQL教程MySQL的安全问题安装开始说起》开发教程,希望对您有用。

《MysqL教程MysqL的安全问题从安装开始说起》要点:
本文介绍了MysqL教程MysqL的安全问题从安装开始说起,希望对您有用。如果有疑问,可以联系我们。

当你安装 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_installationMysqL学习

**对于这 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.


**我觉得、这里的关键应该是能够把匿名用户给删掉***
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
MysqL学习

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

You should remove them before moving into a production environment

**匿名用户的危害****

所以、生产环境请务必删之!!

MysqL学习

我选择 MysqL_secure_installationMysqL学习


[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学习

总结

以上是内存溢出为你收集整理的MYSQL教程MySQL的安全问题从安装开始说起全部内容,希望文章能够帮你解决MYSQL教程MySQL的安全问题从安装开始说起所遇到的程序开发问题。

如果觉得内存溢出网站内容还不错,欢迎将内存溢出网站推荐给程序员好友。

欢迎分享,转载请注明来源:内存溢出

原文地址: https://outofmemory.cn/sjk/1161318.html

(0)
打赏 微信扫一扫 微信扫一扫 支付宝扫一扫 支付宝扫一扫
上一篇 2022-06-01
下一篇 2022-06-01

发表评论

登录后才能评论

评论列表(0条)

保存