Configuring mysql in camunda wildfly - mysql

I have run the table scripts in mysql and done all steps according to the following link
https://groups.google.com/forum/#!topic/camunda-bpm-users/O8dpppcvwt8
But this link has apache set up so the files where I have to edit the dependencies are not present in wildfly. Also where to set up the jdbc url and connections?
Softwares I have
mysql-5.6.24-winx64
wildfly-8.2.1.Final
camunda-bpm-wildfly-7.4.0

You have to create a mysql wildfly module and add the driver to the server configuration as described in this tutorial. You than have to adjust the configuration of the process engine data source like described in the installation guide.

Related

Database Connection Problem - Azure MySql Database Server from .net core 3.1

-- Background:
I am using asp.net mvc project with 3.1 .net core.
I have azure setup for hosting it in app service.
For Database, I have mysql database server set up on Azure (version 5.7).
-- Problem:
I am using basic connection string when connecting to mysql database. But it is not working for hosted application.
When I connect the azure hosted database server locally using WorkBench, and run the program (locally), it 'works'. (WorkBench connection has Ssl = required and SSL cert File attached.)
But when I publish the same code with same connectionString, it is not working.
IS IT BCZ OF:
I am using 5.7 azure mysql database server?
(To update the version, do I need to create new mysql server on azure and pay $20? Because Mycrosoft documentation says there is 'Upgrade' option on overview. But there is not. Or might for higher subscription. Any suggestions?)
If the reason is I am missing mentioning ssl certi on hosted platform, how can I add it? Do I need to get storage to store that certificate? How can I mention that path in connectionString?
Any other reason for this problem?
I checked YouTube, Microsoft documents, And Google but didn't find solution.
UPDATE:
Libraries used:
MySql.EntityFrameworkCore 3.1.X
Microsoft.EntityFrameworkCore 3.1.X
MySql-Connector-Net 8.0.X
Connection String used: "Server=.mysql.database.azure.com;Port=3306;Database=;Uid=;Pwd=;"
Solution:
It was unable to connect because of incomplete networking.
I had to allow other azure services to connect that server.
Thanks for your comments.

How to update httpd.conf file in openshift

Is there a way to apply Apache server config (in httpd.conf) to Openshift PHP application? I need to add a configuration so that Apache acts as reverse proxy for specific URL pattern and those requests need to be handled by a java application also hosted in Openshift. But I do not have access to httpd.conf file and only root user has access to it. The file I am referring to is (php/configuration/etc/conf/httpd.conf)
The users do not have permissions to edit the hhtpd.conf file in PHP cartridges I know of.
However, you can develop your own cartridge, that will have it configured according to your needs. You can find more about creating cartridges here.

"java.lang.ClassNotFoundException" when trying to connect mySql via servlet

I try to connect to MySQL database (works perfect when I connect to it without servlet) and get the below error all the time:
java.lang.ClassNotFoundException: com.mysql.jdbc.Driver
This error means (as I understand) that I don't have some jar files in my project. but this is not true, because I have those Jars. !Moreover, if I realy didn't had those jar, I could not have connected to the database anyway.
What I missed?
By looking at those tags this is a web application. So the error clearly states you don't have your SQL Venders Driver jars in the class path.
You can put this jar in your Project/WEB-INF/lib folder and restart whatever web server you are using. Then you will be good to go.
Your mysql jdbc jar driver isn't in your classpath.
If you run it from a servlet, it uses the classpath of your servlet container. This classpath probably contains it.
Find mysql-connector-java where you can, and copy into your classpath.

Jmeter not connecting to AWS RDS

I am trying to perform some testing on my rds instance by using jmeter.
I have succesfully created a testplan with the help of this tutorial. when i execute the testplan, i get 100% error in summary report.
Summary Report
When i checked jmeter.log, it shows
https://docs.google.com/document/d/1XxBkAq21_k3lj27uqd0GDxQ3kPJD37ey9Gy3aJsT6Ag/edit?usp=sharing
i think jmeter is not connecting with the rds instance, but i am not able to comprehend the reason.
i have copied the mysql-connector jar to the JMETER_HOME/lib
also, i have not edited jmeter.properties
You need to restart JMeter after copying mysql-connector.jar to /lib folder of your JMeter installation. It can also be done on Test Plan level via "Add directory or jar to classpath" input.
You need to provide appropriate "JDBC Driver Class" value in JDBC Connection Configuration
See The Real Secret to Building a Database Test Plan With JMeter guide for end-to-end walkthrough.

How to connect lift and MySQL?

I want to create a simple lift web application which read input throug form and insert it into database.
You need to add mysql jdbc driver to your project (as a maven artifact, or via sbt, or just put jar in CLASSPATH) and edit properties file (props/default.props):
db.driver=com.mysql.jdbc.Driver
db.url=jdbc:mysql://localhost/your_db_name
db.user=user
db.password=password
Also, you can setup db context in app container (Tomcat, etc.) instead. After that you can use Lift's ORM (Mapper).