i have a problem with connecting the MySQL workbench remotely on my VPS server, and i have not an idea what is the problem...
I'm using the cPanel user to connect to the database
I have added my current IP to the white list (allowed hosts)
I'm using domain name (or server IP) as hostname
I'm using default port 3306
I got the error 10060
What could be the problem, and how can I solve it ?
The problem is solved by adding the client IP address to csf.conf file.
Thanks.
Related
My hosting site provided me phpMyAdmin on server's localhost. How to connect remotely to MySql using remote tool as Session Manager or MySql Workbench.
When i work database in my website i use hostname as localhost. So question is what to fill in hostname in workbench. I already tried hosting site ip address, but couldnt connect with database.
A screenshot
From the figure, you shared I can see you are using HeidiSQL software to connect with a remote MySQL server. Hostname/IP should be your hosting IP address provided by your hosting provider. You need to verify the port where your MySQL is running. Here you have set 3306 which is the default port. It could run on a different port. In the User and Password fields, you should use your username and password to login into your hosting server.
I'm trying to connect to a remote databases using an ip address ,login and password,the instance name is SQLEXPRESS ,Any idea how can i connect to this databases with workbench ?
Just replace the localhost server (or IP) with the correct IP.
You might need to create a dedicated user for external connection, since default root user is restricted to connect only from localhost.
When I access phpMyAdmin from GoDaddy it says the server is localhost:3306 and therefore can only connect to mySQL using localhost as servername. Should the server be my websites url or ip address? Do I need to set it up?
No, you do not need to set it up. The fact that it is showing localhost:3306 in GoDaddy simply shows that it's on the same server with your hosting package.
If you're connecting to this MySQL instance from PHP, you would connect to "localhost" as the server address. No port should be necessary as 3306 is default for MySQL.
No, the server should not be set up to use your websites url or IP address, as having it at localhost in essence does that. It's on the same server AS your website.
Does that make sense?
I'm trying to setup a new connection in MySQL Workbench to MySQL server on my other network computer named say: SERVER
Hostname: SERVER
Port:3306
Username and password I leave blank.
I'm getting "unknown server host"
SERVER has dynamic IP.
How do I provide the correct Hostname?
I don't think that you can connect to a computer of your network with its name only in MySQL Workbench.
So, if you can't allocate a fixed IP with DHCP to your computer running MySQL maybe you could use port forwarding in your router config (localhost:port -> computer2_ip:mysql_port) so you will be able to connect to localhost:port in MySQL Workbench. You could also create a tunnel between the two computer but I think this is rather a question for ServerFault.
I have installed mysql server and workbench on a machine that is running on Ubuntu Linux platform.I also have installed mysql server and workbench on my machine that is running with Windows 7 OS.Both the machine are connected to network.I want connect to the mysql server from my machine.i tried changing the bind address of mysql server according to the machine's ip, and gave that ip as host name while connecting through mysql workbench from my machine.But i am not able to connect successfully.Please Help
Well, IMHO, the only problems that could be are ither:
Username does not have enough priveleges
Server does not accept connections
Firewall Blocking port
You should investigate each of these cases