Friday, December 5, 2014

How to install MySQL on RedHat/CentOs/Fedora in offline mode

  • Download MySQL server and MySQL client RPM packages from following URLs ( This is the latest  version up to the date of this blog post is written. Please make changes appropriately)

    •            MySQL Server

            http://repo.mysql.com/yum/mysql-5.6-community/el/6/x86_64/mysql-  community-server-5.6.21-2.el6.x86_64.rpm

    • MySQL Client

            http://repo.mysql.com/yum/mysql-5.6-community/el/6/x86_64/mysql-community-client-5.6.21-2.el6.x86_64.rpm

  • Copy downloaded packages to your preferred location and open terminal in that location
  • Execute following command to install MySQL from downloaded RPM files

yum localinstall mysql-community-server-5.6.21-2.el6.x86_64.rpm mysql-community-client-5.6.21-2.el6.x86_64.rpm mysql-community-release-el6-5.noarch.rpm

  • After installation you can access to mysql console using following command
mysql -u root -p

and press enter twice (password is empty)

No comments:

Post a Comment