MySQL Database Connection in Pentaho - mysql-workbench

I am trying to create a new connection in pentaho to connect mysql database. And I am getting an below error.
Pentaho community edition V6.1
Connector : mysql-connector-java-5.1.17-bin.jar
Error connecting to database [Reports] : org.pentaho.di.core.exception.KettleDatabaseException:
Error occurred while trying to connect to the database
Error connecting to database: (using class org.gjt.mm.mysql.Driver)
Could not connect to address=(host=localhost)(port=3306)(type=master) : Connection timed out
org.pentaho.di.core.exception.KettleDatabaseException:
Error occurred while trying to connect to the database
Error connecting to database: (using class org.gjt.mm.mysql.Driver)
Could not connect to address=(host=localhost)(port=3306)(type=master) : Connection timed out

Related

DBVisualizer Error : Long Message: SSL error: Connection reset, Details: Type: java.sql.SQLException SQL State: 08006

I am getting below error while trying to connect to a Redshift database thru DB visualizer. It was working fine but then computer restarted and it stopped working. Now giving below error while connecting to Redshift -
An error occurred while establishing the connection:
Long Message:
SSL error: Connection reset
Details:
   Type: java.sql.SQLException
   SQL State: 08006

AWS DMS Endpoint connection issue

While testing the connection for a Postgres DB(Destination DB) endpoint getting the error on AWS DMS endpoint
Test Endpoint failed: Application-Status: 1020912, Application-Message: Cannot connect to ODBC provider Network error has occurred, Application-Detailed-Message: RetCode: SQL_ERROR SqlState: 08001 NativeError: 101 Message: [unixODBC]timeout expired
I'm able to connect to the DB directly via various DB clients using the same credentials

I can't see my data in my mongodb databse

this is the first time I'm using MongoDB and when I connect my MongoDB database by SSH connection to Studio 3T I can see the database and the collection: Hre he is (I'm hosting the website on a server under centos 8)1
The website work, I can signup, signing, logout, etc but I can't see the users in my user's collection : 2
I'm using a source of a website in nodejs and the database already have users etc and I just would like to clear it and to add the rank admin on my user to have access to the admin panel.
I don't understand why those collections are empty.
EDIT : when I try to connect my mongodb database to studio 3t by URI I have this error :
connection failed.
SERVER [45.9.188.221:27017] (Type: UNKNOWN)
|_/ Connection error (MongoSocketOpenException): Exception opening socket
|____/ Socket error: Connection refused: connect
Details:
Timed out after 5000 ms while waiting to connect. Client view of cluster state is {type=UNKNOWN, servers=[{address=45.9.188.221:27017, type=UNKNOWN, state=CONNECTING, exception={com.mongodb.MongoSocketOpenException: Exception opening socket}, caused by {java.net.ConnectException: Connection refused: connect}}]
Help, please

what do i do to fix my Mongodb connection error

I'm trying to connect to mongodb to set up a database, however i keep encountering an error?
Ive tried redownloading mongo and updating ubuntu but keet getting the error
MongoDB shell version v4.0.9
connecting to: mongodb://127.0.0.1:27017/?gssapiServiceName=mongodb
2019-04-24T16:27:11.186+0100 E QUERY [js] Error: couldn't connect to server 127.0.0.1:27017, connection attempt failed: SocketException: Error connecting to 127.0.0.1:27017 :: caused by :: Connection refused :
connect#src/mongo/shell/mongo.js:343:13
#(connect):2:6
exception: connect failed
Looks like its an error caused due to some kind of permissions .
(OR)
Checkout if the used username and the password is correct or not !

Couldn't connect to server apollo.modulusmongo.net

I'm trying to connect MongoDB database on modulus.io by referencing [this][1] tutorial.
I've registered with modules .io and received the database url. (Modulus provides the database URL you need and you can use mongoose.connect to connect to it)
i.e.
MONGO URI
mongodb://<user>:<pass>#apollo.modulusmongo.net:27017/wIp4otyd
MONGO CONSOLE
mongo apollo.modulusmongo.net:27017/wIp4otyd -u <user> -p <pass>
But when I'm trying to connect it through both node.js and console its showing me following error:
C:\mongodb\bin>mongo apollo.modulusmongo.net:27017/wIp4otyd -u <my_uname> -p <my_pwd>
2016-02-04T12:01:07.097+0530 I CONTROL [main] Hotfix KB2731284 or later update is installed, no need to zero-out data files
MongoDB shell version: 3.2.1
connecting to: apollo.modulusmongo.net:27017/wIp4otyd
2016-02-04T12:01:09.455+0530 W NETWORK [thread1] Failed to connect to 52.6.181.208:27017, reason: errno:10061 No connection could be made because the target ma
chine actively refused it.
2016-02-04T12:01:09.457+0530 E QUERY [thread1] Error: couldn't connect to server apollo.modulusmongo.net:27017, connection attempt failed :
connect#src/mongo/shell/mongo.js:226:14
#(connect):1:6
exception: connect failed
Its connecting to local perfectly (mongoose.connect('mongodb://localhost/news');)
but refusing to modulus.io (mongoose.connect('mongodb://<my_uname>:<my_pwd>#apollo.modulusmongo.net:27017/wIp4otyd');)