Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Steps to install MySQL 5.6 on linux

...

MySQL is the database software most people use for the OpenMRS Platform database. You should know your MySQL root password, or have a database ready with username and password to install the OpenMRS Platform into. The latest version of openMRS core supports mysql 5.7, MySQL 5.6 also works perfectly fine.

For Linux (especially  Ubuntu 20.04) follow these steps to install MySQL 5.6

  • Download the MySQL Community Server DEB Bundle from here. Select 5.6.* as Product Version, Debian Linux as Operating System and then download the 32-bit or 64-bit DEB Bundle as per the system’s requirement.
    It basically contains individual packages like mysql-common, mysql-community-client, mysql-client, mysql-community-server, etc.
  • Install the packages individually using dpkg -i <package-name>.deb.
  • Note that it will be required to go in a certain order for installing the packages, which could be found out by trial-and-error (see the error messages if any for the other package’s requirement).
  • In case there is some error for missing dependencies, run sudo apt-get install -f.

...

This order of installation works for Ubuntu 20.04.Install the .deb packages in the following order:

sudo dpkg -i mysql-common_5.6.47-1debian9_amd64.deb 
sudo dpkg -i mysql-community-client_5.6.47-1debian9_amd64.deb 
sudo dpkg -i mysql-client_5.6.47-1debian9_amd64.deb 
sudo dpkg -i mysql-community-server_5.6.47-1debian9_amd64.deb

You might also need to install libaio1 package. Use this command :


sudo apt-get install libaio1

If you see errors, Re run the following commands :

sudo dpkg -i mysql-common_5.6.47-1debian9_amd64.deb
sudo dpkg -i mysql-community-client_5.6.47-1debian9_amd64.deb

If you get some errors about missing dependencies, Run sudo apt-get install -f.


That’s it, MySQL 5.6 will be installed successfully!

Install And Configure Your IDE

...

Note: The latest version of openMRS core supports mysql 5.7 Server and above.  An error might flag if the version is below 5.6. 


Installation for Developers On Windows supplemented with images.

...