How to create a proxy connection on mysql workbench - mysql

My company is using http proxy connection to connect through the internet. I am trying to connect to my RDS MySQL instance on AWS by using MySQL Workbench. However, I get failed error. I need to configure my workbench to connect through my company http proxy.
Any suggests how?
Best Regards
Fady

Related

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

MySQL Domo AWS RDS Connector

I'm having issues connecting Domo to a MySQL database hosted with AWS RDS. Whenever I try to authenticate I get this error:
"Failed to authenticate. Verify the credentials and try again. Domo is ready, but the credentials you entered are invalid. Verify your account credentials and try again. Error setting up SQL connection. Could not create connection to database server. Attempted reconnect 3 times. Giving up."
Its not security group settings. Someone suggested on this post:
https://dojo.domo.com/t5/Data-Sources-and-Connectors/MySQL-connector-issues/td-p/15462
that I should enable SSL in AWS database but I'm not sure how to do that.
I'll assume you're using the MySQL connector, not the MySQL SSH connector.
It sounds like you need to whitelist Domo's IP addresses within your AWS RDS's security groups.
Aside from that, make sure you're populating the credentials in Domo with the right pieces of information. Hostname should be the server's public IP address.
This connector follows the same general process as described in AWS's documentation here, with the exception that steps 5 and 6 are optional since SSH is not required for this connector.

AWS connect to database

I created a database on AWS - RDS.And created a nodes app.
On MySql Workbench localhost I connected to database using endpoint and it was success and I got data on localhost/users
I deployed the nodejs app server to AWS but I did not get any data when I tried to call https://xalynj2ul4.execute-api.us-west-2.amazonaws.com/staging/users.
Try white-listing your node server in mysql host config file by entering your server ip in it

Spring Boot Connection to MySQL on remote SSH server

I am trying to connect to MySQL server at remote machine using spring-boot application.properties but it is failing with error o.s.b.a.orm.jpa.DatabaseLookup: Unable to determine jdbc url from datasource.
My database URL is in the correct format. Remote Server requires ssh connection and I have connected it successfully using MySQL Workbench. For connection via spring-boot app, I checked solutions and implemented JSCH solution as explained in post:
Spring Boot SSH Mysql? but still no success.
Remote Server SSH port is 202 instead of default 22. Any help on how to connect DB?
Please refer information mention here -
here
or
stackoverflow page

How do you setup SSL to connect to an RDS MySQL Instance

I am new to RDS Instances and Security, I am wondering how I can setup SSL to connect to my MySQL RDS Instance so i can do the following
connect to my RDS through SequelPro Application
connect via PHP (my framework is laravel)
I looked everywhere and AWS only gives me a rds-combined-ca-bundle.pem key and a rds-ca-2015-{regional-key} i don't even know what to do with these.
RDS Bundle and MySQL Specific Link
SSL requires a key file, a certificate file and a CA certificate file.
Any help would be great. Thank you
The documentation you link to directly specifies how to connect to an RDS instance via SSH:
http://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/CHAP_MySQL.html#MySQL.Concepts.SSLSupport
mysql -h myinstance.c9akciq32.rds-us-east-1.amazonaws.com \
--ssl-ca=[full path]rds-combined-ca-bundle.pem --ssl-verify-server-cert
So the questions now are:
How to get SequelPro to connect via SSH:
According to the SequelPro documentation, it only can connect via SSH using an SSH tunnel.
So you'll need to connect via SSH from your local computer to an EC2 instance in your VPC. Getting this setup has nothing to do with your RDS instance. Once that connection is established, you would use this tunnel to make a non-SSH connection to your RDS instance.
See: https://sequelpro.com/docs/get-started/get-connected/remote
Connect to RDS from your PHP app:
Similarly, it looks like PHP does not have built-in SSH support for MySQL connections.
There are many QA on Stack Overflow on this topic:
Connect to a MySQL server over SSH in PHP
Connect to a mysql database via SSH through PHP
Conclusion
In both accounts, it looks like SSH tunnels is the only way to go. So you either:
live with the tunnels,
use standard connection (non-encrypted), or
use other tools/mechanisms to connect that do support SSH.
You can not access the underlying server via SSH on the RDS product. If you absolutely have to have access you will need to install the database on an EC2 instance and forgo the benefits of using RDS
See https://forums.aws.amazon.com/message.jspa?messageID=153017