I recently set up a MySQL server on my BeagleBone Black, it seems to work locally. Then I try to remote connect using MySQL Workbench on my laptop, but it said connection failed. Any idea why?
I also set up LightTPD, and that works fine. I am able to see a website from my laptop. So the connection there is good. I also check the iptables policy, and it is set to accept. I also ran netstat to see which port it's listening to, 3306. So I can't really think of why it don't work...
I am really new to this server, client, database things, so any help will be appreciated. Thanks!
Try Node.js server instead of Lighttpd. Better it you connect your database from Node.js MVC app. Use express or something like that.
Related
I'm currently in the process of learning Docker (using it on Windows and Linux). There is one thing I cannot understand, and I think it is better explained with an example.
I run a MySQL container expose ports and then I connect to it via MySQL client such as MySQL Workbench. On Linux/Ubuntu I am able to connect to the DB running inside a container via its IP address, which I obtain by running "docker inspect CONTAINER_NAME". This makes perfect sense to me, and this is how I would connect to a database running on a server.
However, on Windows this approach doesn't work. I actually have to connect to localhost instead of the container's IP address. I understand that this has something to do with the fact that on Windows containers are running inside a Linux VM, but in this case I should be using the VM's IP address to connect to it.
Why does this work the way it works? I struggle to understand it (I'm still a junior developer), and I would rather understand how it works than just memorise commands/IP addresses for different OSes.
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
I have a mac computer and I run "xampp" my sql server on it.
It works great locally but I want to access it from lets say my iPhone thats use 3g connection.
I'm using the external ip of my computer but don't get to the sql server.
I opened the 3306 port I'm my router but still doest work...
what should I do? (I'm using mac).
thanks for help
You might need to use port forwarding and forward all traffic to port 3306 to your computer that runs mysql.
http://portforward.com/english/routers/port_forwarding/
I have enabled this through windows Firewall. (I use Avast Free which doesn't have a free firewall) and I have went onto the BT router to port forward this too. Yet I still get system error 10060. I have downloaded PfPortchecker and checked port 3306 and apparently it's still not open.
I am pretty clueless on what to do here, any help is appreciated cheers.
If both MySQL Workbench and your MySQL server run on the same machine then you don't need to open any port on the modem or in the firewall. Focus on problems on your local machine.
First thing to check is: is your server actually running? Is there a service that starts the MySQL server? What setup is that? Did you install the server via the MySQL Windows Installer? If the server is running check the config file if TCP/IP networking is disabled for some weird reason (it should not, but who knows). If that is disabled you can only connect via a named pipe to your server.
Next step is to check is that the user you use to connect is actually allowed to connect from the local machine. Jeremy is right here, it matters if you use localhost or 127.0.0.1, especially if IPv6 is enabled on the box (where localhost resolves to ::1, instead of 127.0.0.1).
I developed a project in VB.NET
In this project I want to use data from MySQL that is resides in my WEB Server.
I can communicate with the MySQL server of my localhost but can not communicate with the WEB Server.
In my CPanel I added Host from the Remote Database Access
But I can't communicate with WEB MySQL Server.
Please help me.
The first step is to try to connect to the web mysql with MySql Query Browser - that will tell you if the database is open for remote connections ( I assume it would fail)
I guess you have already checked it, but make sure you use the correct ip
EDIT:
As Björn said, your vb code is ok, so the problem is with the connection to the db.
Unfortunately that would be caused by many many reasons.
Are you sure you use a real IP from the host (and use it in the mysql settings)?
Are you sure you entered the correct remote host in the mysql settigns?
Are you sure you have correct connection string in the vb code?
Since your post indicates you can access the DB on your localhost, it doesn't seem to be an issue with the way you're connecting to the DB from your application (.NET-Connector?).
What does the external MySQL-Server say? Access denied? Or can't you reach it from the pc where your application is hosted (aka maybe a firewall regulation, other network etc.)?