Admin-Ahead Community

Linux => Server Security & Hardening => Topic started by: Jithin on November 08, 2013, 09:01:27 pm

Title: MySQL Secure Installation
Post by: Jithin on November 08, 2013, 09:01:27 pm
Hi Guys,

To install MySQL in a secured way, the delevopers provide a tool that ship with the base MySQL source.

After compiling or installing  the MySQL, just execute the command "mysql_secure_installation" and that will walk you through some basic and secure way to setup MySQL.

Sample Executing :

# 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):

Give it a try!