Cannot connect to Remote SQL DB with Dreamfactory - mysql

I am attempting to connect to a remote MySQL database using DreamFactory app.
This is what I am doing:
http://i.imgur.com/S9WHZ5i.png
And this is the error I see in the Dreamfactory app log:
[2014-06-14 09:47:53] app.ERROR: REST Exception #500 > Failed to
launch service "myservice": CDbConnection failed to open the DB
connection.
{"host":"myaddress","request_uri":"/rest/myapp","source_ip":"...","sapi_name":"apache2handler"}
[] [2014-06-14 09:47:53] app.ERROR: SQLSTATE[HY000] [2003] Can't
connect to MySQL server on '...' (111) [] []
I checked on my MySQL machine for any access attempts and I see none.
I think I configured something wrong in the Dreamfactory Admin screens.
Please help!
Many thanks!

User has answered his own question. Had to enable incoming connections within his Amazon EC2 instance. Just a heads up to others having the same issue out there.
Thanks,
Mark

Related

Failed to connect to database: Error: Can't connect to MySQL server on 'xxxxxx.rds.amazonaws.com' (111)

I am trying to run this command locuscompare(in_fn1 = gwas_fn, in_fn2 = eqtl_fn, title1 = 'CAD GWAS', title2 = 'Coronary Artery eQTL') within R in ubuntu behind a corporate proxy
but having the following persistent issue for three days.
Error in .local(drv, ...) :
Failed to connect to database: Error: Can't connect to MySQL server on 'locuscompare-us-west-2a.xxxxxx.us-west-2.rds.amazonaws.com' (111)
Warning message:
In rm(config) : object 'config' not found
I have already tried the solutions mentioned in stack overflow, such as installing MySQL, assigning users' privilege, editing bind-address in configuration file, but still do not know how to run it smoothly.
I thought at first it was an issue related to the lacking of MySQL server and AWS account on my device. But, when I use it on my mac with home Wi-Fi, it is working like a charm without any installation and creation of MySQL server and AWS account. However, I still need to use this tool on my work PC because of input data privacy issue.
Does it mean I need to create an AWS account and adjust the network setting in it to access MySQL server on this URL 'locuscompare-us-west-2a.xxxxx.us-west-2.rds.amazonaws.com'? (Sorry that I am very new to AWS and MySQL.)
Please let me know how to run this tool behind a corporate proxy.

How to fix db query error: failed to connect to server - please inspect Grafana server log for details

i'm new in Grafana. Im wanted to configure the mysql in grafana as the datasource. But my database is not a local database which is cloud database in mysql. How can i configure that? because i'm trying to configure it say "db query error: failed to connect to server - please inspect Grafana server log for details"
Anyone know how to change that? or how to configure mysql database in grafana (not local database). Please Help. Thank you
error message
Docker host using IP address of your machine follow below steps:
Open the CMD
IPCONFIG /ALL
Look for the IPV4 address under WiFi or
vEtherner, in my case its 192.168.1.24 and 172.45.202.1 respectively
Then try accessing the app hosted in docker container with mapped port (e.g. 1433/5436)
It works on 192.168.1.24:1433 and 172.45.202.1:1433 in the same way to access all container apps hosted using docker

How do I connect to my RDS MySQL instance programmatically?

Problem
I launched a MySQL RDS instance and was able to successfully connect to it using MySQL Workbench. However, I am still not able to connect to it from my local workstation using the following URI:
'mysql+pymysql://user:password#db_identifier.XXXXXXXXXX.us-east-1.rds.amazonaws.com:3306/db_name'
or the same URI without the port:
'mysql+pymysql://user:password#db_identifier.XXXXXXXXXX.us-east-1.rds.amazonaws.com/db_name'
The error that I receive when I specify this as my database URI and execute a db.create_all() command is:
sqlalchemy.exc.OperationalError:
(pymysql.err.OperationalError)
(2003, "Can't connect to MySQL server on 'db_identifier.XXXXXXXXXX.us-east-1.rds.amazonaws.com'
([WinError 10060] A connection attempt failed because the connected party did not
properly respond after a period of time, or established connection failed because
connected host has failed to respond)")
Question
What can I do to connect using pymysql? And why would it connect with MySQL Workbench and not through this URI?
Context
I am following the tutorial here. This uses SQLAlchemy to execute the SQL statements in Python.
The RDS instance (and its associated subnet/VPC) have the following:
a security group open on port 3306
NACL rules that allow incoming and outgoing traffic
Public Accessibility set to "Yes"
Check my answer on this post, it could be something about the "Public accesibility" option in your rds "Connectivity and Security" section as described here;
https://stackoverflow.com/a/63514997/2934184

JetBrains can not connect with a Hosted MySQL Database

I have a MySQL-Database from a hostingservice (strato.de). I try to connect the JetBrains DataGrip with this MySQL Database. I tried to connect but I get everytime a timeout. So I tried it with SSH but there I got this error:
[08001] Could not create connection to database server. Attempted
reconnect 3 times. Giving up. java.io.EOFException: Can not read
response from server. Expected to read 4 bytes, read 0 bytes before
connection was unexpectedly lost.
I do not understand the problem... is the Firewall blocking the connection?
How can I connect JetBrains with my Hosted MySQL-Database?
Make sure your hosting provider exposed MySQL database port for external connections.
Have you tried to connect via MySQL Workbench?
Just in case read JetBrains help topic

Cannot connect to MySQL Server database at localhost:3306

When I first set up MySQL Server in Netbeans everything worked well. Now one day I think I accidentally clicked something or my computer lost battery life when I was connected to MySQL Server, and after these event(s) I have not been able to connect to MySQL Server. I do not know for sure if either of the above events would have any effect on connecting to a MySQL Server database.
Anyway since these events I have found that I cannot "start" or "connect" to a MySQL Server databse. I am doing this all through Netbeans IDE.
Here is a picture of how I try to connect to my databaseL:
This is what the error message says after I click connect:
Unable to connect. Cannot establish a connection to jdbc:mysql://localhost:3306/twitterdata using com.mysql.jdbc.Driver(Unknown database 'twitterdata'). The name of the database I am trying to connect to is twitterdata
How can I get reconnected to the MySQL Server database "twitterdata"?
I am not familiar with MySQL, databases, servers and I have no idea how to get reconnected. If there is any other helpful information that I should provide let me know.
What MySQL tools can I run to find my problem?
Why would the error message tell me that the database is unknown?
If I got to C:\ProgramData\MySQL\MySQL Server 5.5\data. There is a folder named twitterdata.
Here are the contents of that directory:
Please let me know if you need more information or if you have other suggestions that would help!
Thanks for all the help!
If you are using windows system and facing the error 'unable to connect localhost 3306' at the connection time. First you have to need start MySQL services in 2 steps:
Press "Windows key + R" write "services.msc"
And run as admin start MySQL service.
There can be three issues:
1) Either your server isn't even running. Open your command prompt and enter mysql
2)Let's say it is , can you check if it's connecting on the correct port.
Like in the url, you are using 3306,
Try following this post:
How do I find out my MySQL URL, host, port and username?
3) Can you check what if there are any credentials to the database you are connecting?
https://netbeans.org/kb/docs/ide/install-and-configure-mysql-server.html