am using manual installation appraoch Setting Up mysql 5.7, tomcat 8, java 8, maven 3 all running yet i have no clue to my issue, here is a paste bin link error installation wizard openmrs - Pastebin.com
Is this able to get in little light of prerequisites:
i have edited the question above, it seems what you cited was different approach, if not elaborate
@kamajo It seems the issue is with the server database connection.
The distribution requires a MySQL database. Please specify database uri (-DdbUri) (default: 'jdbc:mysql://localhost:3306/@DBNAME@'):
Please specify database username (-DdbUser) (default: 'root'):
Hope you didnt specify dbname - You have to just press enter for default values to apply same for username.
@suubi7 here is a step by step of how I was installing
- git clone GitHub - openmrs/openmrs-core: OpenMRS API and web application code
- cd openmrs-core
- mvn clean install
- cd webapp
- mvn jetty:run
- http://localhost:8080/openmrs/initialsetup
I didn’t specify any distribution
well, from the error log, its db user permissions, so, actually I wanted you to know the root password for the install, because that’s necessary to setup OpenMRS.
maybe more informative would be the wizard options you selected
@thembo42 I used a first option, simple installation
are you able to login into mysql using the root password?
yes, am also using the same password
I also faced this problem before and I opted to use the SDK installation as an alternative. cc @dkayiwa @ibacher
Could you try using the SDK instead of jetty server installation. Follow along with this https://openmrs.atlassian.net/wiki/spaces/docs/pages/25476136/OpenMRS+SDK
Run mvn org.openmrs.maven.plugins:openmrs-sdk-maven-plugin:setup-sdk
If this installation is successful run mvn openmrs-sdk:setup
to setup your distribution.
Then if all goes well run mvn openmrs-sdk:run
this should put up your server running.
okay let me use that approach
if you are using a docker container for MySQL, it’s preferable to create the database and database user beforehand(running the OpenMRS installer). You can name them as the default installation would have (database: openmrs, user: openmrs_user
). Then grant privileges with a statement like:
GRANT ALL PRIVILEGES ON database_name.* TO 'username'@'%' IDENTIFIED BY 'password';
be sure to choose the Advanced option
cool!
I hope this is a known issue !
@thembo42 not sure about that, since the sdk installation worked for I just somehow didnt try Jetty again.