Database connectivity with sulu-minimal - sulu

I have created new project and download from here https://github.com/sulu/sulu-minimal, but i don't know in which file has database configuration option.

Are you running already Sulu 2.0 (develop branch) or Sulu 1.6 (master branch)?
In 2.0 it is in the .env file, and it can be configurate as described in the Symfony Documentation.
In 1.6 there is a file at app/config/parameters.yml, which is copied from the app/config/parameters.yml.dist file. There the database can be configured with all the parameters starting with database_.

Okay, I Got it.
In sulu 1.6, I know how to configure database.
But in Sulu 2.0, I don't know how to configure database?

Related

How to set up Apache Sling to use a relational DB

I am on Sling 11, which uses Jackrabbit Oak as content repository. I was wondering how to set up Sling to store the JCR repo on an RDBMS (DB2 to be specific).
I found this link on Jackrabbit Persistence, but looks like it does not apply to Oak and Oak documentation is mostly about MongoDB.
Also found an implementation of a Cassandra Resource Provider, although that seems designed to access specific paths mapped to Cassandra without using Oak.
Thanks,
Answering here but credit goes to Sling user's mailing list
Package the DB driver in an OSGi bundle
Download Sling's starter project
In boot.txt add a new running mode (in my case oak_db2)
[settings]
sling.run.mode.install.options=oak_tar,oak_mongo,oak_db2
Download Sling's datasource project and compile it.
In oak.txt configure the running mode (this will load the bundles for you in Felix):
[artifacts startLevel=15 runModes=oak_db2]
com.h2database/h2-mvstore/1.4.196
com.ibm.db2/jcc4/11.1
org.apache.sling/org.apache.sling.datasource/1.0.3-SNAPSHOT
And set-up the services that will manage persistence:
[configurations runModes=oak_db2]
org.apache.jackrabbit.oak.plugins.document.DocumentNodeStoreService
documentStoreType="RDB"
org.apache.sling.datasource.DataSourceFactory
url="jdbc:db2://10.1.2.3:50000/sling"
driverClassName="com.ibm.db2.jcc.DB2Driver"
username="****"
password="****"
datasource.name="oak"
Create a 'sling' named database.
run with java -jar -Dsling.run.modes=oak_db2 sling-starter.jar

Error writing to database

I'm using Moodle 3.2.
Created website in XAMPP server with database type is mariaDB.
Trying to move website in to WAMP server.
Created database in phpmyadmin and imported database.
Placed website folder in WAMP/www/site_folder.
changed configuration in config.php file.
While running the site, getting the following error.
Error writing to database
Try to run a plain moodle install before, to see if your DB configuration is working fine.
I think for MariaDB you need to set some (not standard) settings for moodle 3.2
You seems to have switched from mysql to mariaDB, Please make sure that you have set the dbtype driver right in config.php file.
$CFG->dbtype = 'mariadb';
See for reference https://docs.moodle.org/32/en/MariaDB

IBM Cognos DB2 configuration

I'm trying to configure IBM Cognos 10.2.1 with IBM DB2 - 10.5.1 on AIX 7.1. The default installation (in cogstartup.xml) of Cognos comes with Derby database. Cognos with default configuration starts successfully. Dispatcher page comes up but with an error that indicates that Content Store (i.e. Derby) is not available.
However, if I replace the database with DB2, Cognos does not start properly i.e. dispatcher URL is inaccessible.
Can you please see what can be the issue?
Are you doing config for server end or framework manager client end? what i can tell you is once you passed config in FM and want to change it, you gotta remove two Pkey and comm folders before you trying to save your config
You might need to copy db2 jar files to cognos lib folder when you change the database from Derby to DB2, directly edit the cogstartup.xml with DB2 data configurations.

Couchbase - Run on bucket file to get all keys of specific node

I am currently working with couchbase server 1.8.1 an in a process of upgrading to 2.2 version.
We want to dump all the keys of couchbase 1.8.1 to a text file and then run on this file and copy all the data to the new couchbase 2.2.
The reason we chose to use this method instead of backup and restore is because our server do not respond well to backup and there is a risk of server failing.
Can you help me figure out how to create this dump file from couchbase bucket files?
In addition to what Dave posted, I recommend reading this blog post: http://blog.couchbase.com/Couchbase-rolling-upgrades
Also, there are some unique considerations when upgrading from 1.8.1 to 2.x, so make sure you read the documentation Dave linked to.
Note you can upgrade an existing cluster online (without having to manually copy data to a new 2.2 cluster) - see http://docs.couchbase.com/couchbase-manual-2.5/cb-install/#upgrading
We use this script: CouchbaseDump
It works and help us getting the keys from the sqlite files.

How to export KIE-WB databases to another database engine as MySQL?

I have an installation of Drools kie-wb 6.1.0. By default, it works with Derby database and now, I want to move it to a production environment (where MySQL server is used). How can I export the database from one engine to other?
All information found in the official documentation seems to be from Guvnor, that has some specifics options in the menu "Administration" in the tab called "Repository Configuration". But in KIE-WB there I only can define new repositories (by GIT or SSH). Is something missing in my installation? or the option is elsewhere?
Yes, as #Steve says, it must be a documentation error. Now I understand deeply Drools and I see that database is only used for internal application management, not for rules or projects. Then, in my case, there is not need to move to MySQL.