Connection from pentaho to mysql - database-connection

I'm having problem with the connection between Pentaho and Mysql. I started the Pentaho Server and then i launch the workbench of the psw pentaho client. To connect i'm using the jdbc connctor latest version: mysql-connector-java-8.0.11.jar.
When i try to connect to mysql instance (that is running) i get the following error:
Errore di connessione al database [database] :
org.pentaho.di.core.exception.KettleDatabaseException:
Error occurred while trying to connect to the database
La classe di driver 'org.gjt.mm.mysql.Driver' non è stata trovata,
assicurarsi che il driver 'MySQL' (file jar) sia installato.
org.gjt.mm.mysql.Driver
org.pentaho.di.core.exception.KettleDatabaseException:
Error occurred while trying to connect to the database
La classe di driver 'org.gjt.mm.mysql.Driver' non è stata trovata,
assicurarsi che il driver 'MySQL' (file jar) sia installato.
org.gjt.mm.mysql.Driver
...
Nome dell'host: 127.0.0.1
Porta:3306
Nome database: schema

Firstly , check whether the your pentaho version supports mysql connector .
if it supports then problem is mysql plugin,open spoon.bat
Open Tool menu -> Marketplace ->install mysql plugin after installing restart pentaho and try again .
Hope it will solve the issue .

Related

Database is in use - Cannot connect to the database with my application

I am using Firebird 4.0 with SuperServer installed on Microsoft Windows 2011. I am developing a win64 database application with Delphi to access the database file on a remote computer.
If I connect to the database file with IBExpert while I also try to connect to the same database with the application I am developing, I get the following error message:
[FireDAC][Phys][FB]lock time-out on wait transaction
object D:\MYFILES\DATABASE\SZERYNG\IMOVEIS_FIREBIRD\BANCO DE DADOS\DBIMOVEIS.FDB is in use
I can open more than one IBExpert and connect to the same database file but I cannot connect to the database file with my application if any other application like IBExpert is connected to the same database file.
IBExpertFDConnection
IBExpert database registration info
My application's FDConnection parameters
DatabaseDatabase File
D:\MyFiles\Database\Szeryng\Imoveis_Firebird\Banco de Dados\DBIMOVEIS.FDB
D:\MyFiles\Database\Szeryng\Imoveis_Firebird\Banco de Dados\DBIMOVEIS.FDB
Server/ProtocolProtocol
Remote, TCP/IP
TCPIP
Server NameServer
127.0.0.1
127.0.0.1
Port
3040
3040
User NameUser_Name
SYSDBA
SYSDBA
CharsetCharacter Set
ISO8859_1
ISO8859_1
Server Version
Firebird 4.0
SQL Dialect
3
Client Library FileFDPhysFBDriveLink.VendorLib
c:\windows\syswow64\fbclient.dll
c:\windows\system32\fbclient.dll
IBExpert database registration info:
Database File: D:\MyFiles\Database\Szeryng\Imoveis_Firebird\Banco de Dados\DBIMOVEIS.FDB
Server/Protocol: Remote, TCP/IP
Server Name: 127.0.0.1
Port: 3040
User Name: SYSDBA
Charset: ISO8859_1
Server Version: Firebird 4.0
Client Library File: c:\windows\syswow64\fbclient.dll
My application's FDConnection parameters:
Database: D:\MyFiles\Database\Szeryng\Imoveis_Firebird\Banco de Dados\DBIMOVEIS.FDB;
Protocol: TCPIP;
Server: 127.0.0.1;
Port: 3040;
User_Name: SYSDBA;
Character Set: ISO8859_1;
SQL Dialect: 3;
IBAdvanced: set_db_readonly=0;
FDPhysFBDriveLink.VendorLib = c:\windows\system32\fbclient.dll;
My application does not use the embedded Firebird client. How can I solve this problem?
This error can be caused during attach to a database by Database Parameters Block including one of following options: isc_dpb_disable_wal, isc_dpb_set_read_only or dpb_set_db_replica. Former will throw the error unconditionally the rest only if the connection is not alone.
Also an attempt of dropping of the database with more than one connection will result in this error but I don't think that this is the case.
After I have removed from the IBAdvanced parameter of FDConnection the set_db_readonly=0, now my application can connect to the database while IBExpert or any other application is already connect to the same database.
I have included the set_db_readonly=0 parameter in the IBAdvanced parameter of the FDConnection as suggested by the help of FireDAC to set the database as read\write.

The difference between MySQL Workbench and MySQL client

I have installed both MySQL Workbench and MySQL client console (Using Ubuntu WSL).
When I tried to connect to MySQL Server and query.
The MySQL Workbench returns typically but the MySQL client returns with errors:
ERROR 2006 (HY000): MySQL server has gone away
No connection. Trying to reconnect...
Connection id: 56993
Current database: *** NONE ***
I don't know the difference between the 2 versions. How can I config MySQL client to Query regularly like MySQL Workbench?
NOTE: It's the same issue when I use mysql-connector-python.

Tosca Returning "Unknown" as an output while running query using Tosca DI

While running a query on Tosca Commander using Tosca DI, it returns an "Unknown" as the value where as the query returns valid data when run manually on Google Cloud Platform
Below is the link to the screenshot of the query run on Tosca
enter image description here
Now, we did raise ticket with the Tricentis support and they quote it to be JDBC Driver issue rather than Tosca DI Issue.
We are currently using:
Driver Version: Simba JDBC Driver Version 1.2.14
Database: SQL Server Management Studio v18.6
Tosca Version: 14
Any responses/solution will be highly appreciated.
Thank you!

Ruby on Rails Set up MS SQL Connection to remote Database in database.yml

I want to connect my Ruby On Rails Application ( developed with ruby mine ) with a MS SQL Server 2008 R2 running on an external PC.
I can connect with Microsoft SQL Server Management Studio running on the same PC where Ruby mine is running to the remote Database in this way:
Server name is: domain.de,PORT\SQLServerName
Then I am connected to this remote database :
In rubymine I use the Gems:
Now I can use adapter: sqlserver in the database.yml without an error.
But I have no clue how to connect to the remote database:
I tired several example configurations like:
When I run the app in development mode I get this error:
C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/tiny_tds-0.6.1-x86-mingw32/lib/tiny_tds/client.rb:77:in `connect': Server name not found in configuration files (TinyTds::Error)
Can Anybody help me with the syntax for the database.yml that it can use the input data I
also use to connect with MS SQL Server Management Studio to the remote Database
I fixed it on myself:
Just replace the comma with a double point
dataserver: 'domain.de:50021\xxxxxxSQLServer'
DAMN YOU WINDOWS

How can I connect to a BlackFish Database in another PC

I am trying to connect to a BlackFish database in another machine using win32 dbExpress 4 database driver.
Server is start in both machines, local and remote.
Database is up in both machines local and remote.
--- UPDATE ---
this is my configuration:
"devmobilWRK" is the remote machine.
This is the result of the test Connection:
Both machine have the same port - 2508
I have delphi 2007 installed in both machines
Jlouro, you must read the Embarcadero documentation about connect to a remote or local Blackfish server.
Blackfish SQL Overview
Blackfish SQL Developer's Guide: Contents
Blackfish SQL : Establishing Connections

Resources