daily pastebin goal
40%
SHARE
TWEET

2763457734652435

a guest Nov 22nd, 2014 18 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. [root@PureVoltageTest ~]# sudo /usr/bin/mysql_secure_installation
  2.  
  3. NOTE: RUNNING ALL PARTS OF THIS SCRIPT IS RECOMMENDED FOR ALL MySQL
  4.       SERVERS IN PRODUCTION USE!  PLEASE READ EACH STEP CAREFULLY!
  5.  
  6. In order to log into MySQL to secure it, we'll need the current
  7. password for the root user.  If you've just installed MySQL, and
  8. you haven't set the root password yet, the password will be blank,
  9. so you should just press enter here.
  10.  
  11. Enter current password for root (enter for none):
  12.  
  13. <!-- LEAVE BLANK AND PRESS ENTER TO CONTINUE -->
  14.  
  15. OK, successfully used password, moving on...
  16.  
  17. Setting the root password ensures that nobody can log into the MySQL
  18. root user without the proper authorisation.
  19.  
  20. Set root password? [Y/n] y
  21.  
  22. <!-- ENTER A NEW ROOT PASSWORD AND PRESS ENTER -->
  23.  
  24. New password:
  25. Re-enter new password:
  26. Password updated successfully!
  27. Reloading privilege tables..
  28.  ... Success!
  29.  
  30. By default, a MySQL installation has an anonymous user, allowing anyone
  31. to log into MySQL without having to have a user account created for
  32. them.  This is intended only for testing, and to make the installation
  33. go a bit smoother.  You should remove them before moving into a
  34. production environment.
  35.  
  36. Remove anonymous users? [Y/n] y
  37.  ... Success!
  38.  
  39. Normally, root should only be allowed to connect from 'localhost'.  This
  40. ensures that someone cannot guess at the root password from the network.
  41.  
  42. Disallow root login remotely? [Y/n] y
  43.  ... Success!
  44.  
  45. By default, MySQL comes with a database named 'test' that anyone can
  46. access.  This is also intended only for testing, and should be removed
  47. before moving into a production environment.
  48.  
  49. Remove test database and access to it? [Y/n] y
  50.  - Dropping test database...
  51.  ... Success!
  52.  - Removing privileges on test database...
  53.  ... Success!
  54.  
  55. Reloading the privilege tables will ensure that all changes made so far
  56. will take effect immediately.
  57.  
  58. Reload privilege tables now? [Y/n] y
  59.  ... Success!
  60.  
  61. Cleaning up...
  62.  
  63. All done!  If you've completed all of the above steps, your MySQL
  64. installation should now be secure.
  65.  
  66. Thanks for using MySQL!
  67.  
  68. [root@PureVoltageTest ~]#
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top