mysql_secure_installation: A useful first step in securing a MySQL server

This won’t be an exhaustive post on how to secure a MySQL server. I just want to mention a useful utility packaged with MySQL server: mysql_secure_installation. Simply run it from the command line once MySQL server is installed and running. It will prompt you with a series of questions, resulting in a more secure setup!

It only covers the very basics, but then you don’t need to remember those at least, and save yourself some typing to boot. Here’s what it does:

  • Set a root password. If you already have it, you’ll need to enter it for the remaining steps.
  • Remove anonymous users
  • Disable non-local root access
  • Remove the test database and access rules related to it
  • Reload privilege tables so the above changes are in effect

A quick and easy way to follow good practices.

Share and Enjoy:
  • email
  • LinkedIn
  • Slashdot
  • StumbleUpon
  • Technorati
  • Netvibes

Post to Twitter Post to Delicious Post to Digg Post to Reddit

Possibly Related (no promises):

  1. Rapidly set up a MySQL database for testing
  2. Tune MySQL like a pro with MySQLTuner
  3. Troubleshooting with MySQL binary logs
  4. Better access to MySQL create view statements
  5. Advanced ordering of MySQL results

Related posts brought to you by Yet Another Related Posts Plugin.

This entry was posted in MySQL and tagged , , . Bookmark the permalink.

Leave a Reply

Your email address will not be published. Required fields are marked *

*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>