We have a web application hosted on Amazon Web services. We are using MySQL instance on EC2.
I want to stress test a DB on EC2 running MySQL. To connect to it one needs to use SSH. I can connect to it through putty. But I don't have any idea on how to use jmeter to run queries on this DB.
How can I connect to MySQL instance through SSH inside jmeter test plan?
I have tried jmeter-ssh sampler, but it only runs SSH commands over SSH. Not useful in my case, I guess.
I would imagine you could do this through an ssh tunnel. There's a short tutorial for running jmeter through an ssh tunnel here:
http://blog.ionelmc.ro/2012/02/16/how-to-run-jmeter-over-ssh-tunnel/
Related
We have a MySQL server that is running on AWS using AWS RDS service and some Kubernetes pods which run some services that connect to this MySQL instance.
I have been using Intellij Idea (2020.1) to connect to these MySQL servers for quite some time. However, recently we have changed the policy to connect to these instances, and now it's only possible to connect to the MySQL servers from the Kubernetes pods. Hence, I now need to login to these pods and then query MySQL using the command-line MySQL-client.
Is there any way I can still use Intellij to connect to these MySQL instances than having to log in to the pods using something like SSH tunnelling or something like that?
Yes, setting up an SSH tunnel is recently straight forwards, but the setup depends on your VPC and EC2 configuration. There are a lot of how-tos on the net, e.g.: https://medium.com/#michalisantoniou6/connect-to-an-aws-rds-using-an-ssh-tunnel-22f3bd597924
I am trying to connect to local GCloud MySQL instance from my local machine. I managed to connect to the instance from Workbench. In this answer it says to add a socketPath in extra when creating the config file. But since I'm trying to run this on local machine I tried changing that "/cloud/" path in many ways but didn't succeed.
Can someone please explain how I can connect to GCloud MySQL instance from a local NodeJS project that use TypeORM.
As per the official documentation we can establish a connection to Cloud SQL from an application running outside of Google Cloud Platform in different ways. Now, I went through the documentation and I found that you can use a Proxy if is for local test environment. I successfully reproduced this scenario and I did all the steps that the documentation said. According to my tests, there is no need to change the socket path.
Please let me know how it goes.
If you are running an application locally and want to connect to a Cloud SQL instance, I would recommend the Cloud SQL Proxy. It creates local entrypoint (Unix socket or TCP port, depending on what you tell it) that will authenticate and proxy your connections to your instance.
I am pretty new to aws stack and trying to setup a simple node-mysql app.
Node is running on AWS EC2 Ubuntu 14.04 instance, and MySQL is running on AWS RDS instance.
I am trying to connect to MySQL from my Node client using popular MySQL connector https://github.com/mysqljs/mysql but for some reason always getting 'Connection timeout'. Since node connection doesn't work, I tried to connect using a Telnet just to see if I at least can create any kind of connection.
telnet instance.12345.amazonaws.com 3306
but also unable to connect. Please note both of the connections e.g. though node app and through telnet do work when I try running them from my Windows localhost.
Things I've considered:
EC2 Ubuntu instance has Outbound rules to allow any kind of out
request.
Running app as sudo.
RDS MySQL instance has inbound
port 3306 open.
Installed MySQL client on my EC2 machine.
Basically have no idea on what exact step I've missed during setup and just trying to poke anything possible, any help/suggestion is greatly appreciated.
so I've made an instance at amazon free web service, I've installed through putty mysql, php5, apache and so on on an ubuntu instance... But I can't for the life of me seem to find out how to manage the mysql on that instance. What am I missing? If I look in the Amazon RDS I can only manage for another instance, not for the one I have custom running...
As you have installed MySQL in the EC2 instance you can manage it via terminal.
Login to your instance using putty/ssh and connect to MySQL using below command
mysql --user=username --password=password
you need to install MySQL client if you installed on only MySQL Server.
If I look in the Amazon RDS I can only manage for another instance, not for the one I have custom running...
Yes, RDS is a service where Amazon manages the entire database box for you. The AWS Console manages (paid) RDS instances, not databases in general.
But I can't for the life of me seem to find out how to manage the mysql on that instance.
The "normal" way. Amazon doesn't come with CPanel or other GUI administration tools. Mainly because experts don't need them.
If you want to manage your MySQL graphically, install something like PHPMySQLAdmin or the like.
Note: never open the MySQL port to the internet. If you need to connect to MySQL, use "port forwarding" in Putty to forward port 3306 to the remote box port 3306. Then you can run a MySQL GUI client locally.
I have been searching all morning but can't find a solution to this:
I'm looking for a way to establish a secure connection in my Codeigniter APP to a remote machine using SSH. Using Navicat I can SSH tunnel into mysql and perform queries and I want to connect the same way through my app. Is there a way?
I have openssl installed on my Ubuntu 11.10 server
Take a look at this : CodeIgniter - Running via the CLI.