Advertisement
Guest User

4372348243144329

a guest
Nov 22nd, 2014
261
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
HTML 1.92 KB | None | 0 0
  1. root@purevoltage:~# sudo 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. <!-- ENTER YOUR ROOT PASSWORD THAT YOU DEFINED IN ON SETUP EARLIER -->
  13.  
  14. Change the root password? [Y/n] n
  15.  ... skipping.
  16.  
  17. By default, a MySQL installation has an anonymous user, allowing anyone
  18. to log into MySQL without having to have a user account created for
  19. them.  This is intended only for testing, and to make the installation
  20. go a bit smoother.  You should remove them before moving into a
  21. production environment.
  22.  
  23. Remove anonymous users? [Y/n] y
  24.  ... Success!
  25.  
  26. Normally, root should only be allowed to connect from 'localhost'.  This
  27. ensures that someone cannot guess at the root password from the network.
  28.  
  29. Disallow root login remotely? [Y/n] y
  30.  ... Success!
  31.  
  32. By default, MySQL comes with a database named 'test' that anyone can
  33. access.  This is also intended only for testing, and should be removed
  34. before moving into a production environment.
  35.  
  36. Remove test database and access to it? [Y/n] y
  37.  - Dropping test database...
  38. ERROR 1008 (HY000) at line 1: Can't drop database 'test'; database doesn't exist
  39.  ... Failed!  Not critical, keep moving...
  40.  - Removing privileges on test database...
  41.  ... Success!
  42.  
  43. Reloading the privilege tables will ensure that all changes made so far
  44. will take effect immediately.
  45.  
  46. Reload privilege tables now? [Y/n] y
  47.  ... Success!
  48.  
  49. Cleaning up...
  50.  
  51.  
  52.  
  53. All done!  If you've completed all of the above steps, your MySQL
  54. installation should now be secure.
  55.  
  56. Thanks for using MySQL!
  57.  
  58.  
  59. root@purevoltage:~#
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement