Remote mysql server access - mysql

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/

Related

Hot to connect to remote MySQL server when my ISP is blocking 3306?

I am developing simple application with Visual Studio that gets data from remote MySQL server through MySql.Data.dll extension. Everything works fine when I'm in my own network, but when I'm at customer site it won't work. I'm assuming their IT is blocking port 3306. Since this is a big corp with strict rules cooperation with network admin is not an option. I heard about tunneling with SSH, tried to do some research but this time this is something not supported by my remote MySQL server provider. I'm out of ideas. What are my options?
Many thanks,
Paw
You can try the command > telnet <yourDBHost> 3306 to verify if port is blocked.
In that case, if you can't request to your admin to open port, maybe you can change the port of MySQL to another open port in the firewall, using your CPanel or editing config files directly if you can access it.

Can't access MySQL via 3G connection

I have one strange situation that I need help with...
My Linux machine is connected to internet via 3G connection and it is set up to save collected data to MySQL database that is located on a shared hosting. It's been working like that for a couple of months now without problems and now I'm trying to switch from shared hosting to a new VPS server that I've rented two weeks ago.
On new server I have MySQL installed and working, tried the connection from my desktop machine via Workbench, as well as from my mobile phone.
When I try the connection on Linux machine - it just won't connect to MySQL (double checked all the parameters).
I am connecting via IP address on standard TCP 3306 port, I'm sure that port is open on Linux machine because it worked with shared hosting without problems, and on VPS I know is opened because I can connect from my home machine and mobile phone (both on separate networks).
It seems to me that IP address of VPS server can't be accessed from Linux for some reason, but I can't tell why.
Telnet to VPS IP via 3306 port works from my (windows) desktop machine, on Linux I've tried
nmap {IP address} -p 3306 -PN
and got response:
PORT STATE SERVICE
3306/tcp filtered mysql
Everything seems to be working from other networks except the one on Linux station, and I don't know where to look for the problem. I have also a windows laptop that is connected to the Linux station 3G network and it also does not recognize the VPS IP address (can't telnet to 3306 port), but when I connect laptop to tethered network from my mobile phone - telnet to 3306 works... I'm totally puzzled!
Does anyone have an idea what I might be doing wrong? Why the VPS can't be accessed via 3G network?
Any help would be appreciated!
Thanks!

Unable to access port 3306 for mySQL Workbench

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).

Cannot connect to remote mysql from Mac lion

I'm a mac novice and trying to get a developer setup to develop php sites locally. The sites he develops have a mysql backend and that is on a remote box. We got xampp installed and working, he can connect from the website to the local mysql box but he cannot connect to the remote box. He is using the exact same connection info I am using from my windows system. I do not have any issues. Also the mysql server is setup to accept all users (we are currently using root) regardless of hostname.
I searched his system and I could not find a mysql.sock file. I do not know what this does, but googled some articles that mentioned.
Please help if you can.
Try Telnetting to the server from your host and see if you get a response.
telnet host 3306
If that doesn't work, you probably have some local firewall on your mac that is blocking the connection. Also, one thing you don't mention is that you can connect from a windows computer and not a mac... are they on the same network? If they're on different networks or in different places, that could indicate a local network issue.
This is definitely not an issue with mysql, but with something on the Mac itself.
The mysql.sock file is relevant only to the machine the MySQL server is running on, for local clients to communicate with the server. For any remote machines, they'll be connecting via TCP on port 3306.
Make sure that port 3306 is open in the server machine's firewall, and that MySQL has been configured to allow TCP connections.

Manage mySQL DB by using phpMyAdmin and point browser to ip

Hi I am completely new to phpMyAdmin and mySQL
Is there any way to configure remote management/access of my MySQL database by pointing requests or a browser to an IP? I have my server set up behind a router and have setup port forwarding for ports 8080 (tomcat) and 3306(should be default mySQL). Everything works locally on the machine, however I cannot access the dbs or phpmyadmin by pointing a browser from a computer on the local network to http://IP/phpmyadmin or from externally by pointing the browser to the IP given to me by my ISP. Any thoughts? Is there a specific way to edit the config files in order to allow the use of IP addresses?
Exposing your db and appserver on the internet is not a good idea. If these need to be accessed remotely, use a VPN or authenticated SSL. In the case of phpmyadmin - if this is running on a webserver on your network then you'll need to forward port 80 too - although I'd recommend using HTTPS/SSL (port 443)