mysql_secure_installation
2015-10-10 19:52
781 查看
[root@web soft]# 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. Set root password? [Y/n] y New password: Re-enter new password: Password updated successfully! Reloading privilege tables.. ... Success! 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] y ... Success! 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! All done! If you've completed all of the above steps, your MySQL installation should now be secure. Thanks for using MySQL! Cleaning up...
相关文章推荐
- paip.将数据导入到在英语语音数据库mysql道路解决空原则问题
- mysql 5.6 从陌生到熟练之-数据库备份恢复
- [ERROR] Can't find messagefile '/usr/bin/share/mysql/errmsg.sys'
- mybatis调用mysql存储过程,带结果集
- Mysql数据库备份和还原常用的命令
- Mysql备份还原数据库之mysqldump实例及参数详细说明
- Mysql事件详解
- mysql 5.6并行复制事件分发机制
- 17.1.1.5 Creating a Data Snapshot Using mysqldump
- Ensemble(Cache)通过ODBC连接Mysql数据库并调用其存储过程
- MySQL 5.5.8 – Problem while Creating new User (SQL Error (1364): Field ‘authentication_string’ doesn
- MySQL中AES_ENCRYPT('密码','钥匙')函数 可以对字段值做加密处理
- MySQL中AES_ENCRYPT('密码','钥匙')函数 可以对字段值做加密处理
- mysql group_concat合并行用法和问题
- mysql语句删除重复记录的方法
- mysql视图
- MySql错误代码1045的解决方案
- mysql基本命令
- mysql数据库的一些用法
- mysql创建新用户并授权