I am trying to integrate JBPM with different databases ,so I wanted to ask:
Does JBPM requires any specific Database ?
How to maintain database in JBPM ?
For Example if we need to execute delete statement, where do we set it? In JBPM or in Hibernate?
JBPM use with default a inmemory H2 Database.
But you can configure it to make use of other relational database systems. I was able to use Postgres and MS SQL so far.
Please find further instructions about DB config with in the offical docs: https://docs.jboss.org/jbpm/release/7.3.0.Final/jbpm-docs/html_single/#_using_a_different_database
JBPM comes configured with H2 Database by default, you can change through
persistence.xml the default dialect
<property name="hibernate.dialect" value="org.hibernate.dialect.PostgreSQLDialect" />
configure DS on standalone.xml
<jta-data-source>java:jboss/datasources/jbpmDS</jta-data-source>
When you start your JBoss instance, it should refresh your database ddl's.
Related
I have spring boot application that need to be deployed on PCF. I want to use H2 database for local testing but after deployed in PCF I will be using SQL server. I have a schema that need to be used for each database. So, I have two schema.sql file one for H2 and another for SQL server. How can I tell spring for local profile schema-H2.sql need to be used and for profile cloud schema-sqlserver.sql need to be used.
You can set the spring.datasource.platform to differentiate the schema and data sql file.
eg,
spring.datasource.platform=h2
then the file name should be data-h2.sql and schema-h2.sql
Make sure you set spring.datasource.initialization-mode=always
I am currently trying to configure my Spring Boot application so it can talk with my H2 database through Hibernate. As far as I know, the application manages to succesfully connect to the database but it is then unable to find the default database schema as defined in my application.properties file. I have already tried manually creating the database schema through RazorSQL but this did not work.
application.properties:
spring.datasource.url=jdbc:h2:~/dndmp;AUTO_SERVER=TRUE
spring.datasource.platform=h2
spring.datasource.continue-on-error=true
spring.datasource.username=DNDMP
spring.datasource.password=tttt
spring.jpa.properties.hibernate.default_schema=dndmp
spring.jpa.properties.hibernate.ddl-auto=create-drop
spring.jpa.properties.hibernate.show-sql=true
spring.jpa.properties.hibernate.format_sql=true
Use:
spring.jpa.hibernate.ddl-auto=update
How to add new driver into database through KNIME preferences? Generally,
File-> Preferences -> Add File/ Add Directory
The files accepted are only of *.jar or *.zip.
MY QUESTION
I have installed ODBC64 into my PC. Now I need to add that file into knime preferences and use the Driver into Database Connector node.
How to add and use the file into my Knime?
And What is meant by Database URL jdbc:mysql://host:port/database_name
Host and port?
Can anyone please briefly explain and help me out?
I'm assuming based on your database URL of jdbc:mysql:// that you are wanting to connect to a MySQL database? Based on that, then there is a thread on the KNIME forum which explains pretty much all of your question, but the process is the same for any other sort of database. The steps are as follows:
Download the jdbc driver (e.g. from https://dev.mysql.com/downloads/connector/j/ for MySQL) - NB KNIME now comes bundled with several drivers already installed - MySQL is one of those - in the Database Connector node the drivers installed are listed.
In the database URL, you need to change those parts in <> - i.e. the hostname, port number and database name. Hostname may be localhost if it is a local database. The port number you will need to find from your database administrator, or will be what you set it up to be if you are running a local database (3306 is the default for MySQL), so for a database called 'myDB' on the default port on your local machine, the url should be jdbc:mysql://localhost:3306/myDB
For some of the shipped drivers, there are also connector nodes, e.g. MySQL Connector, SQLite Connector, PostgreSQL Connector etc, which still require the server name/port and database name, but take them as individual inputs rather than requiring editing of the URL
Recent versions of KNIME are based on Java 8, which dropped support for ODBC, so you should first find an alternative driver for your database and only after you can connect to that with KNIME as described on the KNIME documentation page for DB connectors.
You have several nodes which allow you to connect to a DB (especially MySQL).
I remember there was a dedicated MySQL node for connecting with the DB.
Just remember this: you have to input the IP adress : port, then insert credentials and point to the DB you want to open by default.
I'm using plugin Migration from CakePHP and I have two databases in my app,
db1 (default)
tableX1
tableX2
tableX3
...
tableXn
db2
tableY1
tableY2
tableY3
...
tableYn
I want to run Migration that one part must be executed in db1 and other part in db2, how can I do this?
I'd setup different database configurations in your app/Config/database.php
i've a simple question.
Is it possible to use another database name as the readme says it have to be called "DotNetNuke" ?
manually create SQL Server database named "DotNetNuke" ( using Enterprise Manager or your tool of choice )
i've a webhost which have different database names.
thanks
Yes, you can use any database name that you would like. During the installation process, you provide your database name.
You can also manually edit the connection string in the web.config file. By doing this the Auto install option will still be available.