Remote access to MySQL on Amazon EC2 Windows instance - mysql

I found some solutions for Linux here.
But didn't find any solution for Windows. I don't have my.cnf on Windows. I only have my.ini. there is no bind-address in it.
I have already added an inbound rule for MySQL.
Could anybody give me some advice? Thanks a lot!!!

Here's what I would check:
Verify that the MySQL service is up and running by remote desktop'ing to the instance and trying to connect to it on the instance.
If that checks out, try modifying or disabling Windows Firewall to ensure that outside machines can connect on the relevant port. Depending on the Windows version, there might be several places that you need to fiddle with this (i.e. both Windows Firewall and Windows Firewall with advanced security).

If you're using an Asp.Net Application with Entity Framework, you will need to install the MySQL connector on the EC2 instance (I would suggest running iisreset to make sure the dll's are loaded).

Related

DB communication through proxy server

My problem looks like this:
A clientele has one, with a proxy, foreclosed network. However, they want to synchronize information (using odbc-connector) with a database server running on there own Linux server. Unfortunately, only very few ports are open and they do not want to open any further ports.
My idea is that I run the database communication over one of the open ports.
Since I've not done something like this so far, and I'm not really got any further with google search. So I was unfortunately not been able to change the default port of the database server in Plesk on e.g. Port 8080.
I'll be very happy about suggestions:
Either via help changing the port OR also over other ideas, how this problem could be solved more easily.
Thank you in advance!
The system in question looks as follows:
MySQL 5.5.55
Php: 5.6
Plesk Onyx 17.0.17
Ubuntu 14.04.5 LTS

Do I need to restart my instance for firewall rules to apply

I have a Windows 2016 server instance running a node.js website on Google Cloud Engine (please don't ask why).
The node.js app does this:
var server = http.createServer(app);
server.listen(3000);
which, according to the node documentation, listens on every interface.
And indeed, if I connect to the 10.132.x.x address from there, I do see the website.
However, it seems that the port is blocked by the firewall for outside connections.
So I created a new firewall rule which allows tcp:3000 for instances tagged properly. But that doesn't seem to work.
Do I need to restart my instance? Or do anything else?
Ah, silly me. There is also a firewall on the windows instance itself.

Firewall will not play ball

I'm running SQL Server 2008 Express on a windows 2012... or at least I'm trying to :)
My problem is that I have opened the ports I thought I needed but still I cant manage to connect to the database from Visual Studio. As proof I have a screenshot of my firewall settings:
Everything works fine if I turn the firewall off, but who wants that while connected to the internet?
So I wonder what the heck is wrong? Is that some arbitrary ports that gets blocked? Is that a feature on the server (maybe its the same for 2008?)
Large image: http://bildr.no/view/1280743
SQL Server Express typically installs as a named instance, which by default uses a dynamic port. In most cases, it will use 1433 (but not always). You may want to step through:
http://msdn.microsoft.com/en-us/library/ms177440(v=sql.100).aspx
and see if you can assign the service to a fixed port.

Cannot follow external database(MySQL) of openfire server quide

I have MySQL database which I created on university's server
I try to develop android application that can send msg from mobile through XMPP protocol to keep data at my database server(from 1.)
At this time, I already downloaded openfire 3.7.0.dmg(MAC OS X) then try to setup server on my laptop
My problem is I cannot follow Database Installation Guide the error occurred: Does not have mysqladmin command at my Terminal. So, I cannot create table for openfire. Should I need to install MySQL on my laptop ?
Moreover, I pretty much confuse with [YOUR_HOST] of this statement :
jdbc:mysql://[YOUR_HOST]/[DATABASE_NAME]
I don't know what is it? should be localhost or anything?
Anyone can help me ? Thank you so much
You need to have MySQL installed on one computer you have access to. If you want to install it on your Mac, you can either download it directly from mysql.com, or you could install it using a package manager like Homebrew.
Next, make sure your MySQL install can listen for connections over TCP; there's a troubleshooting guide for that.
Next, use the name of the machine your MySQL server is running on in place of [YOUR_HOST]. If it's running on the same machine as OpenFire, you can use localhost.

Windows server 2003, remote way to bypass windows firewall

I have a windows server 2003, I disabled the firewall with the remote desktop, enable it and I lost the access to my machine (and my sites). I was wondering if there is any backdoor to bypass firewall in situations like this, so if something goes wrong, I could fix it remotely.
In linux for example, there is ssh reverse tunneling which I have enable it and in similar situations I could connect anyway and fix any problem I created.
I don't know how much your firewall is configured, but in case WMI is still working, you can open your local "Services" Management Console, connect to your remote computer, and stop the Windows Firewall Service.
If you install e.g. Teamviewer, you can also connect to because Teamviewer usually creates the firewall rules on it's own.