How to Install Mysql 5.6 on Linux 5

If you want to install Mysql 5.6 on linux, you need to download some rpm files below from this link:

  • MySQL-client-5.6.10-1.rhel5.i386.rpm (mandatory)
  • MySQL-server-5.6.10-1.rhel5.i386.rpm (mandatory)
  • MySQL-shared-5.6.10-1.rhel5.i386.rpm
  • MySQL-embedded-5.6.10-1.rhel5.i386.rpm
  • MySQL-devel-5.6.10-1.rhel5.i386.rpm
  • MySQL-shared-compat-5.6.10-1.rhel5.i386.rpm
  • MySQL-test-5.6.10-1.rhel5.i386.rpm

Next step, in some case, you only need to install MySQL-client-5.6.10-1.rhel5.i386.rpm and MySQL-server-5.6.10-1.rhel5.i386.rpm on your linux.

Install rpm

don’t forget to start mysql service using /etc/init.d/mysql start

starting mysql serviceOkay, your mysql database now is running well. You can check the log file in  /var/lib/mysql/hostname.err

if you install mysql from rpm package, the installer adding ‘mysql’ user in OS level. Dont forget to change the ‘mysql’ password.

Next, you need change ‘root’ user password. You can find your random password for user ‘root’ at /root/.mysql_secret

secret passwordFirst, you need login as ‘root’ using that password and using this command for change the password


change passwordIf you use this mysql for Production database, please secure the installation first using /usr/bin/mysql_secure_installation





Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s