I I want to connect my GUI Workbench in SSH for my server Laravel Forge with private key but it failed. In connection ssh, it works! An idea please? (see screenshots)
Instead of setting the MySQL Hostname to localhost/127.0.0.1 try setting it to your server's IP (46.101.34.74 in your case).
I ran into the same issue, tried that out of desperation and it works. Basically setting the SSH Tunnel to connect to an IP that is itself? Not sure.
Related
I need to connect to my mySQL DB, that is related on the cPanel. I need to connect there from my pc, so i can check some things, and continue working on my project. But i don't know what data should i give to mySQL Workbench to connect to my DB. I tried to use TCP/IP, TCP/IP over ssh with these data:
i also opened connection for my IP at the cPanel, but nothing's working. I tried to use PuTTY, and it says that the other side(cPanel i think) closed the connection.
I also tried not to use ssh key file, nothing's working.
What should i do to connect to my DB?
I want to be able to connect to and work with a MySQL database that I have on DigitalOcean via PyCharm's database interface (instead of MySQL Workbench, which is what I'm currently using), but when I try to use PyCharm's interface to connect, I get the following error when I click 'Test Connection':
Packet for query is too large (###### > ######). You can change this value on the server by setting the max_allowed_packet' variable.
I'm connecting to DigitalOcean via SSH, and PyCharm is saying that my SSH connection is OK (it's working).
The issue ended up being that I was putting the wrong IP address and port into PyCharm's prompt: I was putting the IP address to my DigitalOcean VM instead of the local IP address of the MySQL db.
Here's a screenshot of the PyCharm settings that ended up working (remember, I was connecting via SSH):
Here's a screenshot of my (working) MySQL Workbench settings, showing which settings I should have copied over to PyCharm:
I'm fairly new to using MySQL Workbench. I should also mention that I host my database in shared hosting.
I was able to connect to my databases using Standard TCP/IP connection, but I would like something more secure.
So I tried setting up the Require SSL setting for Standard TCP/IP, but even though the site supports https, I receive an error:
I've also tried to set up connection over SSH tunnel using the following settings: https://i.imgur.com/KjO0tK2.png but it also fails:
The SSH connection should work, as I am able to connect to the hosting using PuTTY.
Any idea on what I might be doing wrong?
Thanks!
I used a quick start guide to create a mysql database on EC2 that I can access and query using RStudio. However, I'd like to use Tableau Desktop to visualize the data as well. Tableau can connect to MySQL, but Im not sure how to make it work with EC2. I think I need to use port forwarding. I've Googled extensively and found a few examples but I'm completely new to this and don't know where to begin.
I'm using Terminal on Mac OSX. I'm able to login to SSH and to MySQL once in SSH.
Tableau needs a server, port, user, pass, and initial SQL statement. I'm assuming the initial SQL statement is just "use MyDatabase;"
I remember running into this issue awhile ago and found the solution again. I think the main thing to remember is that you have to use the localhost as the address in Tableau after you ssh into EC2 instead of the address of the actual EC2. You also have to setup your ssh to forward the port as you mentioned. Here is how you do that with PuTTY.
In the first screenshot you will see I added 127.0.0.1:3306 as the destination. This is the address of MySQL as setup on your server. I included 9990 as the source port. This is the port that PuTTY will be monitoring for any given calls. Once you have these defined click add and then save your session and connect with your server credentials through PuTTY. Go to Tableau.
In the second screenshot you will see that I used 127.0.0.1 for the server and 9990 for the port that I defined in PuTTY. You then add the credentials in Tableau that correspond to your MySQL user that is setup on EC2.
I'm trying to connect MySQL Workbench to an Amazon EC2 (Linux) instance that hosts a MySQL Database. (Not RDS but localhost). However for some reason, I can't get it to connect remotely.
Things Ive done:
- Set the security group to allow any IP to access port 3306
- Created a mysql user and granted all privledges on it.
- Modified the my.cnf to include bind-address=0.0.0.0 However i still cant connect.
On this instance I do have SSL cert installed and I am forwarded all http request to https?.. But im not sure if this has anything to do with it.
If anyone could guide my in the righ direction I would appreciate it.
I would personally give it an Elastic IP so it will have a public IP, then bind the mysql to that IP. Make sure the iptables are set to accept the mysql connections. I also wouldnt suggest leaving mysql open to every ip unless this is an absolute necessity.