...
Be sure to download MySQL server instead of MySQL client.
Installing MySQL 5.6 in newer releases of Ubuntu (like 20.04)
One might face difficulties in setting up MySQL 5.6 in the newer releases of Ubuntu (like 18.04 or 20.04). Nothing to worry. Here is a step-by-step guide for doing that.
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
An example case:
I use Ubuntu 20.04 and I went in the following order:
Code Block | ||
---|---|---|
| ||
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 |
After this, I got some errors (maybe because of the order I followed). I again did:
Code Block | ||
---|---|---|
| ||
sudo dpkg -i mysql-common_5.6.47-1debian9_amd64.deb
sudo dpkg -i mysql-community-client_5.6.47-1debian9_amd64.deb |
After this, I got some errors about missing dependencies, so I ran:
Code Block | ||
---|---|---|
| ||
sudo apt-get install -f |
That's it, MySQL 5.6 successfully got installed!
War file deploys in Tomcat but it won't start OpenMRS
...
Kill the previous mvn clean install or mvn jetty: run every time you rerun maven. Otherwise, it might gives a following error indicating address already in use.
HTTP 500 error
After opening http://localhost:8080/openmrs in the web browser, you might encounter the following error.
...
Rerun mvn jetty:run in the webapp folder and it usually works.