Openmrs Showing this error:
"Unable to create the database. The password might be incorrect or the database is not started.
???Error executing sql: create database if not exists ? default character set utf8 - Could not create connection to database server. Attempted reconnect 3 times. Giving up.???"
Please note:
DB creadentials is good. I double checked it.
Tomcat Version: Apache Tomcat/8.5.27
JVM: 9.0.4+11
Widows: 10
u must first set a password for your mysql root account. and then use it as a password .
make sure u start the mysql databse before u do the installation.
u can probably try the standalone wc comes wih every thing packaged and set for u
u can also try the sdk
Same issue with me here. Standalone 2.1.3, tomcat 9, mysql 8.0.1. I have entered the root password but not way. I even reinstalled mysql and made sure I set another password still same result. Its either the standalone has inherent issues or the mysql or the tomcat.
I want to use the enterprise war so as to deployed over the wireless network for client computers to access without starting an instance of the application on the server. For the embedded tomcat and SQL in the standalone version, they canât be accessed by client PCs unless the application has been started on the server for it to invoke the embedded tomcat and SQL.
Uninstalled the mysql 8.0.13 and deleted related folders in program files and program data. Restarted and installed mysql 5.6.42. Now its working⊠after 48hrs of non night sleep though. My hypothesis is that the components mysql 8, tomcat 9 and OMRS 2.x do not mix.
sorry about that blocker but still itâs great that you have overcome it. Please could you share the steps you took to get unblocked to help someone out there who may be having the same problem.
Unfortunately I havenât figured out how to make it work without downgrading the authentication mechanism in MySQL.
I created a separate user in MySQL identified with mysql_native_password (from the openmrs-core repo) using something like:
CREATE USER ââ@âlocalhostâ IDENTIFIED WITH mysql_native_password BY â;â
I then granted appropriate privileges, and using the Advanced setup to have openMRS use the ânewâ user.
The most secure route would be to also create the OpenMRS database and ONLY grant the user privileges on that database (in the Advanced Setup you still create the tables automatically).
I am new to the forum, so apologies if I am breaking any rules.